Class 10 Library classes Important Questions
Class 10 Library classes Important Questions
Options
Options
(a) Boxing
(b) Unboxing
(c) Conversion
(d) Post Boxing
12) state the data and value of y after the following is executed:
Char X = ‘7’;
Y = Character.isLetter(x);
14) what will be the output when the following code segments are
executed?
(i) String s = “1001”;
int x=Integer.valueOf(s);
Double y = Double.valueOf(s);
System.out.println(“x=”+x);
System.out.println(“y=”+y);
(ii) system.out.println(“The King said\”Begin at the beginning!\”to me”);
15) Name any two wrapper classes.
16) Name the wrapper classes of char type and boolean type.
17) State the package that contains the class:
(i) BufferedReader (ii) scanner
18) What is the data type that the following library functions return?
(i) isWhiteSpace(char ch)
(ii) Math.random( )