Java MCQ Questions for Placement


Q.  Consider the following two statements (A) int x = 25; (B) Integer y = new Integer(33); What is the difference between these two statements?

a. Primitive data types
b. primitive data type and an object of a wrapper class
c. Wrapper class
d. None of the above


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  EJB is like COM, Abbreviate the term COM?
Category: Placement Tests,   Published by: teswesm
MCQs:  EJB is a specification for J2EE server, not a product; Java beans may be a graphical component in IDE.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which package is used for Remote Method Invocation (RMI)?
Category: Placement Tests,   Published by: teswesm
MCQs:  RMI is a server-side component; It is not required to be deployed on the server.
Category: Placement Tests,   Published by: teswesm
MCQs:  JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI)
Category: Placement Tests,   Published by: teswesm
MCQs:  How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages?
Category: Placement Tests,   Published by: teswesm
MCQs:  JSPs eventually are compiled into Java servlets, you can do as much with JSPs as you can do with Java servlets.
Category: Placement Tests,   Published by: teswesm
MCQs:  The ResultSet.next method is used to move to the next row of the ResultSet, making it the current row.
Category: Placement Tests,   Published by: teswesm
MCQs:  Drivers that are JDBC Compliant should normally support scrollable result sets, but they are not required to do so.
Category: Placement Tests,   Published by: teswesm
MCQs:  An interface is a blueprint of a class. It has static constants and abstract methods.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?
Category: Placement Tests,   Published by: teswesm
MCQs:  Breaking a string or stream into meaningful independent words is known as tokenization.
Category: Placement Tests,   Published by: teswesm
MCQs:  What can be accessed or inherited without actual copy of code to each program?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which provides accessibility to classes and interface?
Category: Placement Tests,   Published by: teswesm
MCQs:  If you are inserting any value in the wrong index as shown below, 1. int a[]=new int[5]; 2. a[10]=50; it would result in ______.
Category: Placement Tests,   Published by: teswesm
MCQs:  Packages are used for distributing a collection of reusable classes, usually in a format known as Java Archive (JAR) file.
Category: Placement Tests,   Published by: teswesm
MCQs:  Which is used to call the stored procedures and functions?
Category: Placement Tests,   Published by: teswesm
MCQs:  Which interfaces provide methods for batch processing in JDBC?
Category: Placement Tests,   Published by: teswesm
MCQs:  Sessions is a part of the SessionTracking and it is for maintaining the client state at server
Category: Placement Tests,   Published by: teswesm
MCQs:  Which cookie it is valid for single session only and it is removed each time when the user closes the browser?
Category: Placement Tests,   Published by: teswesm