How many types of access modifiers there are in java?
Which of these is the superclass of the WindowEvent class?
What is the full form of DNS?
Which of the following Java classes contains both date and time?
Which annotation allows testing of non-visible or private methods?
Predict the output of the following Java code that creates and manipulates a LinkedList.
class abekus {
public static void main (String[] args) {
int a=50,b=70,c=65;
if((a>c) || (++b>c)){
System.out.println("Inside if block");
}
else
System.out.println("Outside if block");
}
}
Which of the following statements about encapsulation is false?
what should be the output of this code block?
public class abekus
{
public static int sum(int a, int b){
if(a+b>10)
return 0;
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(9, sum(4,2)));
}
}
What are the uses of the final
keyword in Java?