Java Interview Questions
31: J2EE EJB interview questions
What is the relationship between local interfaces and container-managed relationships?
- Entity beans that have container-managed relationships with other
entity beans, must be accessed in the same lo
32: Basic Java Interview Questions
What is a Marker Interface? - An interface with no methods. Example: Serializable, Remote, CloneableWhat interface do you implement to do the sorting? - ComparableWhat is the eligibility for a object
33: Java Interview Question
What is garbage collection? What is the process that is responsible for doing that in java? - Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this processWha
34: Core Java interview questions
Can there be an abstract class with no abstract methods in it? - Yes
Can an Interface be final? - No
Can an Interface have an inner class? - Yes.
public interface abc { static int i=0; void dd(); c
35: Junior Java programmer interview questions
What is the purpose of finalization? - The purpose of
finalization is to give an unreachable object the opportunity to
perform any cleanup processing before the object is garbage collected.What is the
36: Advanced EJB Interview Questions
Are enterprise beans allowed to use Thread.sleep()? -
Enterprise beans make use of the services provided by the EJB
container, such as life-cycle management. To avoid conflicts with these
services, e
37: JDBC and JSP
What is the query used to display all tables names in SQL Server (Query analyzer)?
select * from information_schema.tables
How many types of JDBC Drivers are present and what are they?- There are 4 t
38: Good Java Interview Questions
Is “abc” a primitive value? - The String literal “abc” is not a primitive value. It is a String object.What restrictions are placed on the values of each case of a switch statement?
- During compilati
39: EJB Interview Question
Is it possible for an EJB client to marshal an object of class java.lang.Class to an EJB?
- Technically yes, spec. compliant NO! - The enterprise bean must not
attempt to query a class to obtain infor
40: Java Web Developers Interview Questions
Can we use the constructor, instead of init(), to initialize servlet?
- Yes , of course you can use the constructor instead of init().
There’s nothing to stop you. But you shouldn’t. The original re
Page 4 of 5
[1] [2] [3] [4] [5]