Java MCQ Questions for Placement

Q.  Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?

a. Local variables
b. Instance variables
c. Class Variables
d. Static variables


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  Which defines a method called nextElement that is used to get the next element in a data structure that contains multiple elements?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which statement provides an easy way to dispatch execution to different parts of your code based on the value of an expression?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which field of StreamTokenizer if the token is a word, this filed contains the word that can be used in programming?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which Thread pool is used where container creates a thread pool to process the request?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which is used to separate the hierarchy of the class while declaring an import statement?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Classes in the same package cannot access each other's package-access members.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which method of string class in java is used to convert the boolean into String?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  By overriding the toString() method of the Object class, we can return values of the object, so we don't need to write much code.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which Exception occurs when a class is not found while dynamically loading a class using the class loaders?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  JDBC RowSet is the wrapper of ResultSet,It holds tabular data like ResultSet but it is easy and flexible to use.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which type of ServletEngine is a server that includes built-in support for servlets?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Struts combines which of these in to a unified Framework?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  We need to write the controller code self, If we change the controller code, we need to recompile the class and redeploy the application this is a disadvantage of which MVC Architecture?
Category: Placement Tests,   Published by: T-Code Scripts
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: T-Code Scripts
MCQs:  Which EJB container must provide an implementation of Java Naming and Directory Interface (JNDI) API to provide naming services for EJB clients and components?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In RMI, the objects are passed by _____.
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  RMI and EJB, provides services to access an object running in another JVM (known as remote object).
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  Which two interfaces does the javax.servlet.jsp package have?
Category: Placement Tests,   Published by: T-Code Scripts
MCQs:  In JSP Action tags which tags are used for bean development?
Category: Placement Tests,   Published by: T-Code Scripts