Java Programming Language Quiz - 4
Description: Java Programming Language Quiz - 4 | |
Number of Questions: 9 | |
Created by: Aliensbrain Bot | |
Tags: java |
Attempted
0/9
Correct 0
Score 0
‹
›
What is the output of following piece of code ?
int x = 2;
switch (x) {
case 1:System.out.println("1?);
case 2:
case 3:System.out.println("3?);
case 4:
case 5:System.out.println("5?);
}
A method is defined in a class as : void processUser(int i) { } If this method is overriden in a sub class,_
A Vector is declared as follows. What happens if the code tried to add 6 th element to this Vector new vector(5,10)
A class can be converted to a thread by implementing the interface ___.
Given:
TreeSet map = new TreeSet();
map.add("one");
map.add("two");
map.add("three");
map.add("four"};
map.add("one");
Iterator it = map.iterator();
while (it.hasNext() ) {
System.out.print( it.next() + " " );
}
Which is true about a method-local inner class?
Which is true about an anonymous inner class?
Which is true?
Which of the following statement is true?