1) Which allows you to define one interface and have multiple implementations?
a. Encapsulation
b. Inheritance
c. Polymorphism
d. None of the above
Answer
Explanation
|
ANSWER: Polymorphism
Explanation: No explanation is available for this question!
|
|
2) Which data type has this Minimum and Maximum value from 3.4e-038 to 3.4e+038?
a. long
b. Int
c. Byte
d. Float
Answer
Explanation
|
ANSWER: Float
Explanation: No explanation is available for this question!
|
|
3) The CharArrayWriter class is not used to write data to multiple files
a. True
b. False
Answer
Explanation
|
ANSWER: False
Explanation: No explanation is available for this question!
|
|
4) Many threads at a time can run in a single process
a. True
b. False
Answer
Explanation
|
ANSWER: False
Explanation: No explanation is available for this question!
|
|
5) Which containers are used to keep the class name space compartmentalized?
a. Packages
b. Applet
c. Browser
d. None of the above
Answer
Explanation
|
ANSWER: Packages
Explanation: No explanation is available for this question!
|
|
6) Which method compares the given object to 'this' object?
a. public boolean equals(Object obj)
b. public final void notifyAll()
c. public final void notify()
d. public final ClassgetClass()
Answer
Explanation
|
ANSWER: public boolean equals(Object obj)
Explanation: No explanation is available for this question!
|
|
7) Exception Handling is a mechanism to handle runtime errors
a. True
b. False
Answer
Explanation
|
ANSWER: True
Explanation: No explanation is available for this question!
|
|
8) Which is a non-static method having the same name as its class?
a. Field
b. Method
c. Constructor
d. None of the above
Answer
Explanation
|
ANSWER: Constructor
Explanation: No explanation is available for this question!
|
|
9) If a class has multiple methods by same name but different parameters, it is known as?
a. Constructor overloading
b. Method overloading
c. Operator overloading
Answer
Explanation
|
ANSWER: Method overloading
Explanation: No explanation is available for this question!
|
|
10) Local inner class can access non-final local variable
a. True
b. False
Answer
Explanation
|
ANSWER: False
Explanation: No explanation is available for this question!
|
|
11) Which of the following JDBC drivers is known as a partially java driver?
a. JDBC-ODBC bridge driver
b. Native-API driver
c. Network Protocol driver
d. Thin driver
Answer
Explanation
|
ANSWER: Native-API driver
Explanation: No explanation is available for this question!
|
|
12) Which are the examples of Application Server?
a. Apache
b. Tomcat
c. JBoss
d. Weblogic
e. Both C & D
Answer
Explanation
|
ANSWER: Both C & D
Explanation: No explanation is available for this question!
|
|
13) Hibernate is an?
a. Open Source
b. Lightweight
c. ORM
d. All mentioned above
Answer
Explanation
|
ANSWER: All mentioned above
Explanation: No explanation is available for this question!
|
|
14) How many core components does the Model-View-Controller pattern in Struts2 have?
a. 4
b. 5
c. 6
d. 3
Answer
Explanation
|
ANSWER: 5
Explanation: No explanation is available for this question!
|
|
15) Which type of instances retain no data or conversational state for a specific client?
a. Message-Driven Bean
b. Session Bean
c. Entity Bean
d. None of the above
Answer
Explanation
|
ANSWER: Message-Driven Bean
Explanation: No explanation is available for this question!
|
|
16) What is the built on top of the socket programming?
a. EJB
b. RMI
c. Both A & B
d. None of the above
Answer
Explanation
|
ANSWER: RMI
Explanation: No explanation is available for this question!
|
|
17) Which models do the JDBC API support for the database access?
a. Two-tier models
b. Three-tier models
c. Both A & B
d. None of the above
Answer
Explanation
|
ANSWER: Both A & B
Explanation: No explanation is available for this question!
|
|
18) Which applet java.awt.component class provides the life cycle method?
a. public void paint(Graphics g)
b. public void destroy()
c. public void stop()
d. public void init()
Answer
Explanation
|
ANSWER: public void paint(Graphics g)
Explanation: No explanation is available for this question!
|
|
19) Where can the event handling code be written?
a. Same class
b. Other class
c. Anonymous class
d. All mentioned above
Answer
Explanation
|
ANSWER: All mentioned above
Explanation: No explanation is available for this question!
|
|
20) Which package acts as an object -oriented wrapper around most common databases provided by java?
a. JDBC
b. ODBC
c. None of the above
Answer
Explanation
|
ANSWER: JDBC
Explanation: No explanation is available for this question!
|
|
21) XML is designed to store data and _____.
a. Design
b. Verify
c. Transport
d. Both A & B
Answer
Explanation
|
ANSWER: Transport
Explanation: No explanation is available for this question!
|
|
22) 22. XML documents must contain a root element; this element is "the parent" of all other elements
a. True
b. False
Answer
Explanation
|
ANSWER: True
Explanation: No explanation is available for this question!
|
|
23) Which are the XML Syntax rules?
a. All XML Elements Must Have a Closing Tag
b. XML Tags are not Case Sensitive
c. XML Elements Must be Properly Nested
d. Both A & C
Answer
Explanation
|
ANSWER: Both A & C
Explanation: No explanation is available for this question!
|
|
24) The URLConnection class can be used to read and write data to the specified resource referred by the URL
a. True
b. False
Answer
Explanation
|
ANSWER: True
Explanation: No explanation is available for this question!
|
|
25) The client in socket programming must know which informations?
a. IPaddress of Server
b. Port number
c. Both A & B
d. None of the above
Answer
Explanation
|
ANSWER: Both A & B
Explanation: No explanation is available for this question!
|
|