To prevent any method from overriding, we declare the method as,
what is the order of Enum ??
public int end(int group) return offset from the last character of the subsequent group
What will be the output of the following Java code?
Which of the following is an unchecked exception?
Which method of the Applet class is automatically called to display the result of the Applet code on the screen?
class test{
public static void main (String[] args) {
int i=50000;
short s=(short)i;
byte b=(byte)i;
System.out.println(b+" "+s);
}
}
In the following Java code, which classes can directly access and change the value of the variable name
?
What is the output of the following Java code?
class Main {
public static void main(String[] args) {
final int i;
i = 20;
System.out.println(i);
}
}
Predict the output of the following Java code.
class Abekus1 {
protected final void method() {
System.out.println("Abekus1");
}
}
public class Abekus2 extends Abekus1 {
protected final void method() {
System.out.println("Abekus2");
}
public static void main(String[] args) {
Abekus1 o = new Abekus1();
o.method();
}
}