1.
Java
What is Encapsulation?
2.
Java
What is not the use of “this” keyword in Java?
3.
Java
What is used to find and fix bugs in the Java programs.
4.
Java
Which of the following is false about String?
5.
Java
Which of the following is not a Java features?
6.
Java
Which statement is true about Java?
7.
Java
In which process, a local variable has the same name as one of the instance variables?
8.
Java
What is the output of the following program?
public class Test implements Runnable
{
public void run()
{
System.out.printf("%d",3);
}
public static void main(String[] args) throws InterruptedException
{
Thread thread = new Thread(new Test());
thread.start();
System.out.printf("%d",1);
thread.join();
System.out.printf("%d",2);
}
}
9.
Java
What of the following is the default value of an instance variable?
10.
Java
What is runtime polymorphism?