Java MCQ Questions for Placement


Q.  Which concept is used to make Java more memory efficient (because no new objects are created if it exists already in string constant pool)?

a. String literal
b. By new keyword
c. Both A & B
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which class can be used to read data line by line using the readLine() method?
Category: Placement Tests,   Published by: teswesm
MCQs:  Package does not provide access protection
Category: Placement Tests,   Published by: teswesm
MCQs:  Generally string is a sequence of characters, But in java, string is an _______.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which block contains a block of program statements where an exception might occur?
Category: Placement Tests,   Published by: teswesm
MCQs:  Static fields belong to the class, not instances of the class
Category: Placement Tests,   Published by: teswesm
MCQs:  Which enables some interaction with the garbage collector?
Category: Placement Tests,   Published by: teswesm
MCQs:  What is the reason that a java program cannot directly communicate with an ODBC driver?
Category: Placement Tests,   Published by: teswesm
MCQs:  In HTTP Request what asks for the loopback of the request message, for testing or for troubleshooting?
Category: Placement Tests,   Published by: teswesm
MCQs:  Abbreviate the term HQL?
Category: Placement Tests,   Published by: teswesm
MCQs:  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?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which server-side component is required to be deployed on the server?
Category: Placement Tests,   Published by: teswesm
MCQs:  RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?
Category: Placement Tests,   Published by: teswesm
MCQs:  In JSP how many ways are there to perform exception handling?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which JDBC drivers will run your program?
Category: Placement Tests,   Published by: teswesm
MCQs:  All Applets must import java.applet and java.awt.
Category: Placement Tests,   Published by: teswesm
MCQs:  Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application
Category: Placement Tests,   Published by: teswesm
MCQs:  What method Returns an enumeration of the keys which includes those keys found in the default property list?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which package provides core functionality?
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:  Which is a software- and hardware-independent tool for carrying information?
Category: Placement Tests,   Published by: teswesm