1.
Java
In which process, a local variable has the same name as one of the instance variables?
2.
Java
What is runtime polymorphism?
3.
Java
What is not the use of “this” keyword in Java?
4.
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);
}
}
5.
Java
Which of the following is not a Java features?
6.
Java
What is used to find and fix bugs in the Java programs.
7.
Java
What is Encapsulation?
8.
Java
Which statement is true about Java?
9.
Java
Which of the following is false about String?
10.
Java
What of the following is the default value of an instance variable?