Q.1
Which sentence is correct?
  • He doing the homework
  • He do the homework
  • He does the homework
  • He was not do the homework
Q.2
Full form of COM
  • Component Object Model
  • Commercial Object Model
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); } }
  • 1,1
  • 1,2
  • 0,0
  • Error
Q.4
When was Java released?
  • 1975
  • 1994
  • 1995
  • 1996
  • 1997
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++);
  • 2
  • 4
  • 5
  • 8
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?
  • value = i;
  • this.value = i;
  • value == i;
  • Both (A) and (B) and above
Q.7
Which of the following variable declaration would NOT compile in a java program?
  • int var;
  • int VAR;
  • int var1;
  • int 1_var;.
Q.8
Which one of these events will cause the thread to die?
  • on calling the sleep() method.
  • when the execution of the run() method ends
  • when the execution of the start() method ends
  • on calling the wait() method
Q.9
Which of the following is wrapper class in java
  • Float
  • Integer
  • Double
  • all of above
Q.10
Which of the followings are the types of JIT?
  • Pre-JIT
  • Econo-JIT
  • Normal-JIT
  • All of the above
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); } }
  • Base, Derived, Derived
  • Derived, Derived ,Derived
  • Derived, Derived, Base
  • None
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); } }
  • I=0
  • I=1
  • I=2
  • Error
Q.14
The StringBuilder class is a thread-safe, while StringBuffer is not.
  • True
  • False
Q.15
This method is used to extract data from result set
  • next()
  • getString()
Q.16
These objects hold data retrieved from a database after you execute an SQL query
  • Statement
  • DataSet
  • Connection
  • ResultSet
Q.17
What are valid keywords
  • Implements
  • All of above
Q.18
Default Web Server in Spring Boot Application is
  • Apache Tomcat
  • Jetty
  • Netty
  • Undertow
Q.19
Which of the ApplicationContext Object is associated with Spring MVC Application
  • ClassPathXMLApplicationContext
  • AnnotationConfigApplicationContext
  • WebApplicationContext
  • DefaultListableBeanFactory
Q.20
A thin driver is
  • Type 1 driver
  • Type 2 driver
  • Type 3 driver
  • Type 4 driver
0 h : 0 m : 1 s