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?);
}
Stateful Session beans contain
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 method is defined in a class as :
void processUser(int i) { }
If this method is overriden in a sub class,_
What is the output of following block of program ?
boolean var = false;
if(var = true) {
System.out.println(“TRUE”);
} else {
System.out.println(“FALSE”);
}
Which of the following is correct syntax for an Abstract class ?
ejbCreate() method of CMP bean returns
In the init(ServletConfig) method of Servlet life cycle, what method can be used to access the ServletConfig object ?
A class can be converted to a thread by implementing the interface ___
Which of the following is correct syntax for an Abstract class ?