Computer Applications
Write the return data type of the following functions :
- startsWith( )
- random( )
Java Library Classes
8 Likes
Answer
- boolean
- double
Answered By
6 Likes
Related Questions
Which of the following is/are not valid wrapper classes?
- Integer
- Float
- integer
- character
- Character
The Wrapper class objects' value is comparable to primitive type values. True/false ?
Which of the following statements are true ?
- The Integer class has a String- and an int-constructor.
- The Integer has a floatValue( ) method.
- The wrapper classes are contained in the java.lang.Math package.
- The Double class has constructors for type double and float.
What is the output of this program?
class Output { public static void main(String args[]) { Integer i = new Integer(257); byte x = i.byteValue(); System.out.print(x); } }
- 0
- 1
- 256
- 257