Java MCQ Questions for Placement


Q.  Which package includes StringTokenizer that tokenizes a string into independent words?

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


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  An XML parser converts an XML document into an XML DOM object, which can then be manipulated with JavaScript.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which allows hyperlinks to point to specific parts (fragments) of XML documents?
Category: Placement Tests,   Published by: teswesm
MCQs:  By interface, we cannot support the functionality of multiple inheritances.
Category: Placement Tests,   Published by: teswesm
MCQs:  The Java Virtual Machine is the cornerstone of the Java platform.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method of DataInputStream class reads a line from the file and returns it as a string?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which state is the thread still alive, but is currently not eligible to run?
Category: Placement Tests,   Published by: teswesm
MCQs:  Both threads are waiting for each other to release the lock, the condition is called deadlock.
Category: Placement Tests,   Published by: teswesm
MCQs:  How many ways are there to access package from another package?
Category: Placement Tests,   Published by: teswesm
MCQs:  Under which package is the string class encapsulated?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which keyword is used for the block to handle the exceptions generated by try block?
Category: Placement Tests,   Published by: teswesm
MCQs:  Nested interface must be public if it is declared outside the interface but it cannot have any access modifier if declared within the class.
Category: Placement Tests,   Published by: teswesm
MCQs:  What is used to execute parameterized query?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which class can handle any type of request so that it is protocol-independent?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which interface must be implemented by the Action class to store the information in the session scope?
Category: Placement Tests,   Published by: teswesm
MCQs:  The life cycle of session bean is not maintained by the application server (EJB Container).
Category: Placement Tests,   Published by: teswesm
MCQs:  Which objects are used by RMI for communicating with the remote object?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which technology do we mix our business logic with the presentation logic?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method is used for an SQL statement that is executed frequently?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is a special type of program that is embedded in the webpage to generate the dynamic content?
Category: Placement Tests,   Published by: teswesm