1) JDBC is a Java API that is used to connect and execute query to the database a. True b. False
|
||||
2) Which result set generally does not show changes to the underlying database that are made while it is open. The membership, order, and column values of rows are typically fixed when the result set is created? a. TYPE_FORWARD_ONLY b. TYPE_SCROLL_INSENSITIVE c. TYPE_SCROLL_SENSITIVE d. ALL MENTIONED ABOVE
|
||||
3) Servlet technology is used to create web application a. True b. False
|
||||
4) How many layers are available in Hibernate architecture? a. 3 b. 4 c. 5 d. 2
|
||||
5) In which technology Struts 2 provides various types of tags such as UI tags, Data tags, control tags etc. to ease the development of struts 2 application? a. Various Result support b. Integration Support c. Various Tag support d. Theme and Template support
|
||||
6) EJB technology is built on the top of Socket Programming a. True b. False
|
||||
7) RMI allows an object to invoke methods on an object running in another JVM a. True b. False
|
||||
8) JSP’s provide better facilities for separation of page code and template data by mean of Java beans, EJBs and custom tag libraries a. True b. False
|
||||
9) Which is a perfect example of runtime polymorphism? a. Method overloading b. Method overriding c. Constructor overloading d. None of the above
|
||||
10) Which specification that provides runtime environment in which java byte code can be executed? a. JDK b. JVM c. JRE d. None of the above
|
||||
11) Which is commonly used method of ByteArrayOutputStream class? a. ByteArrayOutputStream() b. ByteArrayOutputStream(int size) c. public synchronized void writeTo(OutputStream out) throws IOException d. Both A & B
|
||||
12) Thread class constructor allocates a new thread object a. True b. False
|
||||
13) Which of the package is used to enable interaction with garbage collector? a. java.lang.ref b. java.lang.reflect c. java.lang d. java.awt
|
||||
14) The clone() method is defined in? a. Abstract class b. Object Class c. ArrayList class d. None of the above
|
||||
15) Where are these five keywords try, catch, finally, throw, and throws used in? a. Exception Handling b. String Handling c. Event Handling d. None of the above
|
||||
16) The life cycle of the thread is controlled by ? a. JVM b. JDK c. JRE d. None of the above
|
||||
17) In which the access modifier means that the field can be accessed by all classes in your application? a. Private b. Public c. Package d. Protected
|
||||
18) java.applet defines how many interfaces? a. 2 b. 3 c. 4 d. 5
|
||||
19) The ActionListener interface is not used for handling action events a. True b. False
|
||||
20) The wrapper classes are part of the which package, that is imported by default into all Java programs? a. java.lang b. java.awt c. java.io d. java.util
|
||||
21) In InetAddress class which method returns the host name of the IP Address? a. public String getHostName() b. public String getHostAddress() c. public static InetAddress getLocalHost() d. None of the above
|
||||
22) Which steps occur when establishing a TCP connection between two computers using sockets? a. The server instantiates a ServerSocket object, denoting which port number communication is to occur on b. The server invokes the accept() method of the ServerSocket class. This method waits until a client connects to the server on the given port c. After the server is waiting, a client instantiates a Socket object, specifying the server name and port number to connect to d. All of the above
|
||||
23) In XML document comments are given as? a. < !-- --!> b. < !-- ? c. < /-- --> d. < ?-- ?
|
||||
24) XML is designed to carry data, and to display data a. True b. False
|
||||
25) XML attribute values must always be enclosed in quotes a. True b. False
|
||||
26) Which inheritance is not supported in java? a. Single inheritance b. Multiple c. Multilevel inheritance d. Hybrid e. Java supports all of the above
|
||||
27) Which provides a new way for your programs to interface with code libraries written in other languages? a. JNI b. JDBC c. RMI d. GUI
|
||||
28) Which is used as an internal buffer and adds more efficiency than to write data directly into a stream. So, as to makes the performance fast? a. BufferedOutputStream b. ByteArrayOutputStream c. BufferedInputStream d. ByteArrayInputStream
|
||||
29) In how many states Threads can be explained ? a. 4 b. 5 c. 3 d. 2
|
||||
30) Which of the following ways specify/ies to load the class files in temporary? a. By setting the classpath in the command prompt b. By classpath switch c. Both A & B d. None of the above
|