Java MCQ Questions for Placement


Q.  Which methods are commonly used in ServerSocket class?

a. public OutputStream getOutputStream()
b. public Socket accept()
c. public synchronized void close()
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which class has traditionally been the backbone of the JDBC architecture?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is the correct order of lifecycle in an applet?
Category: Placement Tests,   Published by: teswesm
MCQs:  The following a) It is lightweight. b) It supports pluggable look and feel. c) It follows MVC (Model View Controller) architecture are the advantages of _____ .
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method returns an enumeration of the values contained in the dictionary?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which class is used to create servers that listen for either local client or remote client programs?
Category: Placement Tests,   Published by: teswesm
MCQs:  URL stands for Uniform Resource Locator and represents a resource on the World Wide Web, such as a Web page or FTP directory.
Category: Placement Tests,   Published by: teswesm
MCQs:  XML is ?
Category: Placement Tests,   Published by: teswesm
(2) < to>Tove< /to> (3) < from>Jani< /from> (4) < /note>'>MCQs:  The following example shows which XML Syntax rule, (1) < note date=' 12/11/2007'> (2) < to>Tove< /to> (3) < from>Jani< /from> (4) < /note>
Category: Placement Tests,   Published by: teswesm
MCQs:  The getElementsByTagName() method is used to retrieve data from an XML document.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which keyword is used by classes to implement an interface?
Category: Placement Tests,   Published by: teswesm
MCQs:  JVM stands for?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which package includes StringTokenizer that tokenizes a string into independent words?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which method waits for a thread to die?
Category: Placement Tests,   Published by: teswesm
MCQs:  What will happen if we call the run() method directly instead of calling the start() method?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which package includes all the standard classes of java?
Category: Placement Tests,   Published by: teswesm
MCQs:  How many types of constructor are defined in the StringTokenizer class?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which class is used when a program does not want to handle an exception?
Category: Placement Tests,   Published by: teswesm
MCQs:  What type of constructor is used to provide different values to the distinct objects?
Category: Placement Tests,   Published by: teswesm
MCQs:  JDBC stands for?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which HTTP Request method is non-idempotent?
Category: Placement Tests,   Published by: teswesm