Collection extends
What is the default value of a static integer variable of a class in Java?
Predict the output of the following Java code.
Which of the following is not OOPS concept in Java?
In this type of inheritance, one super-class has more than one sub-class?
Which event is generated when an applet's window is closed?
Which of the following is used for implementing inheritance through an interface?
The ways to copy the values of one object into another in Java are:
what should be the output of this code block?
public class abekus {
public static void main(String[] args) {
int a = -5;
a += 5;
switch (a) {
case 5:
System.out.print("5");
break;
case 10:
System.out.print("10");
default:
System.out.print("0");
}
}
}
What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
char c[] = {'a', '1', 'b', ' ', 'A', '0'};
for (int i = 0; i < 5; ++i)
{
if(Character.isDigit(c[i]))
System.out.println(c[i] + " is a digit");
if(Character.isWhitespace(c[i]))
System.out.println(c[i] + " is a Whitespace character");
if(Character.isUpperCase(c[i]))
System.out.println(c[i] + " is an Upper case Letter");
if(Character.isLowerCase(c[i]))
System.out.println(c[i] + " is a lower case Letter");
i = i + 3;
}
}
}