Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
Java All : Wrapper Classes


Exam Paper Problems

Wrapper Class Names #3936

( As In Exam - ICSE2015 )

Name the wrapper class of char type and boolean type.

Name the wrapper class of char type and boolean type.

Using toUpperCase() of Character Wrapper #7223

( As In Exam - ICSE2017 )

State the data type and value of res after the following is executed:
c

State the data type and value of res after the following is executed:
char ch=’t’;
res= Character.toUpperCase(ch);

Output Writing – Using integer wrapper #7246

( As In Exam - ICSE2017 )

Give the output of the following code:

String A =”26″, B=&

Give the output of the following code:

String A =”26″, B=”100″;
String D=A+B+”200″;
int x= Integer.parseInt(A);
int y = Integer.parseInt(B);
int d = x+y;
System.out.println(“Result 1 = “+D);
System.out.println(“Result 2 = ” +d);

Solved Problems

Output writing for Data Type Size #3857

Find output of following data type size determination instructions using wrap

Find output of following data type size determination instructions using wrapper class declarations.

Integer n=12;
Double d=12.0;
Float f=12.0f;
Character c=12;
Short s=12;
Long l=12L;
Byte b=12;
System.out.println(n.SIZE);
System.out.println(d.SIZE);
System.out.println(f.SIZE);
System.out.println(c.SIZE);
System.out.println(s.SIZE);
System.out.println(l.SIZE);
System.out.println(b.SIZE);


Exam Paper Problems:3  Solved Problems:1 
Back