Java Test
Java Test
int x=2;
System.out.print(++x + x++);
a)6 b) 5 c)4 d) 7
5. which access modifier specifies that a class is visible to all classes everywhere.
6. Do inner class have access to other members of the enclosing class if they are declared as private.
a)yes b) no
8. output ?
int x=5_2;
System.out.println(x);
10.________ is a collection of similar types of elements which has contiguous memory location.
a)8 b) 4 c) 6 )2
a) 32 b) 4 c)8 d)2
a) yes b) NO c) none
a) + b) - c)&& d) ||
23. which method is used to remove empty space between string such as” arjit singh “.
a) trim() b)space()