Q.1.
Which sentence is correct?
Q.2.
Full form of COM
Q.3.
Predict the output of following Java Programs. // filename Main.java class Test { protected int x, y; } class Main { public static void main(String args[]) { Test t = new Test(); System.out.println(t.x + " " + t.y); } }
Q.4.
When was Java released?
Q.5.
Use the following declaration and initialization to evaluate the Java expressions int a =b =c =d = float k = 4.3f; System.out.println (c=c++);
Q.6.
Consider the following class definition: public class MyClass { private int value; public void setValue(int i){ / code / } // Other methods… } The method setValue assigns the value of i to the instance field value. What could you write for the implementation of setValue?
Q.7.
Which of the following variable declaration would NOT compile in a java program?
Q.8.
Which one of these events will cause the thread to die?
Q.9.
Which of the following is wrapper class in java
Q.10.
Which of the followings are the types of JIT?
Q.11.
Predict the output of following Java programs. package main; class Base { public void Print() { System.out.println("Base"); } } class Derived extends Base { public void Print() { System.out.println("Derived"); } } class Main{ public static void DoPrint( Base o ) { o.Print(); } public static void main(String[] args) { Base x = new Base(); Base y = new Derived(); Derived z = new Derived(); DoPrint(x); DoPrint(y); DoPrint(z); } }
Q.12.
Consider the following Java program :
Q.13.
What will be printed as the output of the following program? public class testincr { public static void main(String args[]) { int i = i = i++ + i; System.out.println(“I = ” +i); } }
Q.14.
The StringBuilder class is a thread-safe, while StringBuffer is not.
Q.15.
This method is used to extract data from result set
Q.16.
These objects hold data retrieved from a database after you execute an SQL query
Q.17.
What are valid keywords
Q.18.
Default Web Server in Spring Boot Application is
Q.19.
Which of the ApplicationContext Object is associated with Spring MVC Application
Q.20.
A thin driver is