1) Which type of polymorphism is nothing but the method overloading in java?
a. Compile time polymorphism
b. Runtime polymorphism
c. Static polymorphism
d. Both A & C
Answer
Explanation
|
ANSWER: Both A & C
Explanation: No explanation is available for this question!
|
|
2) Which is nothing but a blueprint or a template for creating different objects which defines its properties and behaviours?
a. An Array
b. A class
c. Interface
d. None of the above
Answer
Explanation
|
ANSWER: A class
Explanation: No explanation is available for this question!
|
|
3) Which class can be used to read data line by line using the readLine() method?
a. BufferedReader
b. InputStreamReader
c. DataInputStream
d. None of the above
Answer
Explanation
|
ANSWER: BufferedReader
Explanation: No explanation is available for this question!
|
|
4) These two ways
By extending Thread class By implementing Runnable interface.
are used to?
a. Joining a thread
b. Naming a thread
c. Create a thread
d. sleeping a thread
Answer
Explanation
|
ANSWER: Create a thread
Explanation: No explanation is available for this question!
|
|
5) Package does not provide access protection
a. True
b. False
Answer
Explanation
|
ANSWER: False
Explanation: No explanation is available for this question!
|
|
6) Generally string is a sequence of characters, But in java, string is an _______.
a. Object
b. Class
c. Package
d. None of the above
Answer
Explanation
|
ANSWER: Object
Explanation: No explanation is available for this question!
|
|
7) Which block contains a block of program statements where an exception might occur?
a. Catch
b. try
c. throw
d. final
Answer
Explanation
|
ANSWER: try
Explanation: No explanation is available for this question!
|
|
8) Static fields belong to the class, not instances of the class
a. True
b. False
Answer
Explanation
|
ANSWER: True
Explanation: No explanation is available for this question!
|
|
9) Which enables some interaction with the garbage collector?
a. java.lang.ref
b. java.lang
c. java.lang.reflect
d. java.math
Answer
Explanation
|
ANSWER: java.lang.ref
Explanation: No explanation is available for this question!
|
|
10) What is the reason that a java program cannot directly communicate with an ODBC driver?
a. ODBC written in C# language
b. ODBC written in C language
c. ODBC written in C++ language
d. None of the above
Answer
Explanation
|
ANSWER: ODBC written in C language
Explanation: No explanation is available for this question!
|
|
11) In HTTP Request what asks for the loopback of the request message, for testing or for troubleshooting?
a. PUT
b. OPTIONS
c. DELETE
d. TRACE
Answer
Explanation
|
ANSWER: TRACE
Explanation: No explanation is available for this question!
|
|
12) Abbreviate the term HQL?
a. Hibernate Queue Language
b. Hibernate Query Language
c. Hipher Query Language
d. None of the above
Answer
Explanation
|
ANSWER: Hibernate Query Language
Explanation: No explanation is available for this question!
|
|
13) In which configuration file is there a link between the View and Model components in the Web Client but you would not have to touch these settings for 99.99% of your projects?
a. The struts-config.xml file
b. The struts.xml file
c. The web.xml file
d. The struts.properties file
Answer
Explanation
|
ANSWER: The struts-config.xml file
Explanation: No explanation is available for this question!
|
|
14) Which server-side component is required to be deployed on the server?
a. EJB
b. RMI
c. Both A & B
d. None of the above
Answer
Explanation
|
ANSWER: EJB
Explanation: No explanation is available for this question!
|
|
15) RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?
a. Java Remote Method Protocol (JRMP)
b. Internet Inter-ORB Protocol (IIOP)
c. Jinni Extensible Remote Invocation (JERI)
d. All mentioned above
Answer
Explanation
|
ANSWER: Java Remote Method Protocol (JRMP)
Explanation: No explanation is available for this question!
|
|
16) In JSP how many ways are there to perform exception handling?
a. 3
b. 2
c. 4
d. 5
Answer
Explanation
|
ANSWER: 2
Explanation: No explanation is available for this question!
|
|
17) Which JDBC drivers will run your program?
a. The JDBC-ODBC bridge
b. The JDBC driver manager
c. The JDBC driver test suite
d. None of the above
Answer
Explanation
|
ANSWER: The JDBC driver test suite
Explanation: No explanation is available for this question!
|
|
18) All Applets must import java.applet and java.awt.
a. True
b. False
Answer
Explanation
|
ANSWER: True
Explanation: No explanation is available for this question!
|
|
19) Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application
a. True
b. False
Answer
Explanation
|
ANSWER: False
Explanation: No explanation is available for this question!
|
|
20) What method Returns an enumeration of the keys which includes those keys found in the default property list?
a. Enumeration keys()
b. Enumeration elements()
c. Enumeration propertyNames()
d. Both A & B
Answer
Explanation
|
ANSWER: Enumeration propertyNames()
Explanation: No explanation is available for this question!
|
|
21) Which package provides core functionality?
a. java.net
b. java.rmi
c. java.lang
d. java.math
Answer
Explanation
|
ANSWER: java.lang
Explanation: No explanation is available for this question!
|
|
22) Which class is used to create servers that listen for either local client or remote client programs?
a. ServerSockets
b. httpServer
c. httpResponse
d. None of the above
Answer
Explanation
|
ANSWER: ServerSockets
Explanation: No explanation is available for this question!
|
|
23) Which is a software- and hardware-independent tool for carrying information?
a. HTML
b. XML
c. Both A & B
d. None of the above
Answer
Explanation
|
ANSWER: XML
Explanation: No explanation is available for this question!
|
|
24) XML is the most common tool for data transmissions between all sorts of applications
a. True
b. False
Answer
Explanation
|
ANSWER: True
Explanation: No explanation is available for this question!
|
|
25) Which internet language is used for describing available web services in XML?
a. WSDL
b. RSS
c. RDF
d. OWL
Answer
Explanation
|
ANSWER: WSDL
Explanation: No explanation is available for this question!
|
|