Scala short >(x: Byte): Boolean Last Updated : 29 Dec, 2019 Comments Improve Suggest changes Like Article Like Report Short, a 16-bit signed integer (equivalent to Java's short primitive type) is a subtype of scala.AnyVal. The >(x: Byte) method is utilized to return true if this value is greater than x, false otherwise. Method Definition: def >(x: Byte): Boolean Return Type: It returns true if this value is greater than x, otherwise false. Example #1: Scala // Scala program of Short >(x: Byte) // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying Short >(x: Byte) function val result = (99.toShort).>(11:Byte) // Displays output println(result) } } Output: true Example #2: Scala // Scala program of Short >(x: Byte) // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying Short >(x: Byte) function val result = (102.toShort).>(101:Byte) // Displays output println(result) } } Output: true Comment More infoAdvertise with us Next Article Scala short >(x: Byte): Boolean S Shivam_k Follow Improve Article Tags : Python Scala Scala Scala-Method scala-collection +1 More Practice Tags : python Similar Reads Scala short >=(x: Byte): Boolean Short, a 16-bit signed integer (equivalent to Java's short primitive type) is a subtype of scala.AnyVal. The >=(x: Byte) method is utilized to return true if this value is greater than or equal to x, false otherwise. Method Definition: def >=(x: Byte): Boolean Return Type: It returns true if t 1 min read Scala short <(x: Byte): Boolean Short, a 16-bit signed integer (equivalent to Java's short primitive type) is a subtype of scala.AnyVal. The <(x: Byte) method is utilized to return true if this value is less than x, false otherwise. Method Definition: def <(x: Byte): Boolean Return Type: It returns true if this value is less 1 min read Scala Byte <(x: Short): Boolean In Scala, Byte is a 8-bit signed integer (equivalent to Java's byte primitive type). The method <(x:Short) method is utilized to return true if this value is less than x, false otherwise. Method Definition: Byte <(x: Short): Boolean Return Type: It returns true if this value is less than x, fa 1 min read Scala Byte <=(x: Short): Boolean In Scala, Byte is a 8-bit signed integer (equivalent to Java's byte primitive type). The method <=(x:Short) method is utilized to return true if this value is less than or equal to x, false otherwise. Method Definition: Byte <=(x: Short): Boolean Return Type: It returns true if this value is l 1 min read Scala short <=(x: Byte): Boolean Short, a 16-bit signed integer (equivalent to Java's short primitive type) is a subtype of scala.AnyVal. The <=(x: Byte) method is utilized to return true if this value is less than or equal to x, false otherwise. Method Definition: def <=(x: Byte): Boolean Return Type: It returns true if this 1 min read Like