Java Test Questions Set 10

1)   Which keyword is used by classes to implement an interface?

a. import
b. implements
c. instance of
d. None of the above
Answer  Explanation 

ANSWER: implements

Explanation:
No explanation is available for this question!


2)   JVM stands for?

a. Java Very Large Machine
b. Java Verified Machine
c. Java Very Small Machine
d. Java Virtual Machine
Answer  Explanation 

ANSWER: Java Virtual Machine

Explanation:
No explanation is available for this question!


3)   Which package includes StringTokenizer that tokenizes a string into independent words?

a. java.awt
b. java.applet
c. java.util
d. java.lang
Answer  Explanation 

ANSWER: java.util

Explanation:
No explanation is available for this question!


4)   Which method waits for a thread to die?

a. stop()
b. start()
c. terminate()
d. join()
Answer  Explanation 

ANSWER: join()

Explanation:
No explanation is available for this question!


5)   What will happen if we call the run() method directly instead of calling the start() method?

a. Each thread starts in a separate call stack.
b. Invoking the run() method from main thread, the run() method goes onto the current call stack rather than at the beginning of a new call stack.
c. Both A & B
d. None of the above
Answer  Explanation 

ANSWER: Both A & B

Explanation:
No explanation is available for this question!


6)   Which package includes all the standard classes of java?

a. java.lang
b. java.math
c. java.ref
d. java.util
Answer  Explanation 

ANSWER: java.lang

Explanation:
No explanation is available for this question!


7)   How many types of constructor are defined in the StringTokenizer class?

a. 2
b. 3
c. 4
d. 5
Answer  Explanation 

ANSWER: 3

Explanation:
No explanation is available for this question!


8)   Which class is used when a program does not want to handle an exception?

a. Throws
b. Try
c. Catch
d. Final
Answer  Explanation 

ANSWER: Throws

Explanation:
No explanation is available for this question!


9)   What type of constructor is used to provide different values to the distinct objects?

a. Default constructor
b. Parameterized constructor
c. Overloading constructor
d. None of the above
Answer  Explanation 

ANSWER: Parameterized constructor

Explanation:
No explanation is available for this question!


10)   JDBC stands for?

a. Java database connectivity
b. Java database concept
c. Java database communications
d. None of the above
Answer  Explanation 

ANSWER: Java database connectivity

Explanation:
No explanation is available for this question!


11)   Which HTTP Request method is non-idempotent?

a. GET
b. POST
c. BOTH A & B
d. None of the above
Answer  Explanation 

ANSWER: POST

Explanation:
No explanation is available for this question!


12)   What does the Session object hold?

a. First Level Cache
b. Second Level Cache
c. Both A & B
d. None of the above
Answer  Explanation 

ANSWER: First Level Cache

Explanation:
No explanation is available for this question!


13)   Which servlet does the struts framework use?

a. EntryServlet
b. StrutsServlet
c. ActionServlet
d. BasicServlet
Answer  Explanation 

ANSWER: ActionServlet

Explanation:
No explanation is available for this question!


14)   What represents a persistent global data from the database?

a. Entity Bean
b. Session Bean
c. Both A & B
d. None of the above
Answer  Explanation 

ANSWER: Entity Bean

Explanation:
No explanation is available for this question!


15)   RMI Architecture consists of how many layers?

a. 5
b. 3
c. 4
d. 2
Answer  Explanation 

ANSWER: 4

Explanation:
No explanation is available for this question!


16)   Which is the Microsoft solution for providing dynamic Web content?

a. ASP
b. JSP
c. Both A & B
d. None of the above
Answer  Explanation 

ANSWER: ASP

Explanation:
No explanation is available for this question!


17)   Which JDBC product components does the Java software provide?

a. The JDBC driver manager
b. The JDBC driver test suite
c. The JDBC-ODBC bridge
d. All mentioned above
Answer  Explanation 

ANSWER: All mentioned above

Explanation:
No explanation is available for this question!


18)   What is used to run an Applet?

a. An html file
b. An AppletViewer tool(for testing purpose)
c. Both A & B
d. None of the above
Answer  Explanation 

ANSWER: Both A & B

Explanation:
No explanation is available for this question!


19)   How many types of controls does AWT support?

a. 7
b. 6
c. 5
d. 8
Answer  Explanation 

ANSWER: 7

Explanation:
No explanation is available for this question!


20)   Where does the primitive data type values be stored?

a. Heap Memory
b. Stack Memory
c. Both A & B
d. None of the above
Answer  Explanation 

ANSWER: Stack Memory

Explanation:
No explanation is available for this question!


21)   URL is an acronym for?

a. Uniform Resource Locator
b. Unified Resource Locator
c. Uniform Restore Locator
d. Unified Restore Locator
Answer  Explanation 

ANSWER: Uniform Resource Locator

Explanation:
No explanation is available for this question!


22)   Which language is case sensitive?

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!


23)   Abbreviate the term DOM?

a. Developed Object Model
b. Document Object Model
c. Document Oriented Model
d. None of the above
Answer  Explanation 

ANSWER: Document Object Model

Explanation:
No explanation is available for this question!


24)   An XML parser converts an XML document into an XML DOM object, which can then be manipulated with JavaScript.

a. True
b. False


Answer  Explanation 

ANSWER: True

Explanation:
No explanation is available for this question!


25)   Which allows hyperlinks to point to specific parts (fragments) of XML documents?

a. XPath
b. XSLT
c. XLink
d. Xpointer
Answer  Explanation 

ANSWER: Xpointer

Explanation:
No explanation is available for this question!