This content has been marked as final. Show 9 replies
The usual nasty questions:
- why did you leave your last job
- tell me about your greatest accomplishment
- tell me about your worst failure
- where do you want to be in five years
seriously, here are some real technical interview questions from a list used by a large multinational for an entry level Java or C++ programmer
- explain protected vs private vs public data members and methods
- explain overloading and overriding
- what is polymorphism
- what is inheritance
- what is encapsulation
- give an example of where you might use a static method
- explain up casting and down casting
- what is an abstract class
- explain multiple inheritance and interfaces
- if you have a tree of derived classes, what order are the constructors run
- how do you deal with errors
I don't have any real J2EE questions, but you will probably get asked about JSP, servlets, transactions, entity vs session beans and other obvious stuff like that.
Here are some questions for you to review. Good luck Champ!
BASIC JAVA ASSESSMENT QUESTIONS
1. What are the differences between a List and a Set?
2. What are value objects and how are they used with EJBs?
3. How do you code a Singleton in Java?
4. What's a dynamic proxy class?
5. When should you call SwingUtilities.invokeLater()?
6. What are the differences between a Session Bean and an Entity Bean?
7. How do you read an XML file in Java?
8. Give an example of the Decorator pattern in the Java API.
JAVA and EJB - INTERVIEW QUESTIONS
What is Entity Bean and Session Bean ?
What are the methods of Entity Bean?
How does Stateful Session bean store its state ?
Why does Stateless Session bean not store its state even though it has ejbActivate and ejbPassivate ?
What are the services provided by the container ?
Types of transaction ?
What is bean managed transaction ?
Why does EJB needs two interface( Home and Remote Interface) ?
What are transaction attributes ?
What is the difference between Container managed persistent bean and Bean managed persistent entity bean ?
What is J2EE ?
What is JTS ?
How many entity beans used and how many tables can u use in EJB project ?
What is scalable,portability in J2EE?
What is Connection pooling?Is it advantageous?
Method and class used for Connection pooling ?
How to deploy in J2EE(i.e Jar,War file) ?
How is entity bean created using Container managed entity bean ?
Sotware architechture of EJB ?
In Entity bean will the create method in EJB home and ejbCreate in Entity bean have the same parameters ?
What methods do u use in Servlet - Applet communication ?
What are the types of Servlet ?
Difference between HttpServlet and Generic Servlets ?
Difference between doGet and doPost ?
What are the methods in HttpServlet?
What are the types of SessionTracking?
What is Cookie ? Why is Cookie used ?
If my browser does not support Cookie,and my server sends a cookie instance What will happen ?
Why do u use Session Tracking in HttpServlet ?
What is the capacity the doGet can send to the server ?
What are the type of protocols used in HttpServlet ?
Difference between TCP/IP and IP protocol ?
Why do you use UniCastRemoteObject in RMI ?
How many interfaces are used in RMI?
Can Rmi registry be written in the code, without having to write it in the command prompt and if yes where?
Why is Socket used ?
What are the types of JDBC drivers ?
Explain the third driver(Native protocol driver) ?
Which among the four driver is pure Java driver ?
What are the Isolation level in JDBC transaction ?
How do you connect with the database ?
How do you connect without the Class.forName (" ") ?
What does Class.forName return ?
What are the types of statement ?
Why is preparedStatement,CallableStatement used for?
In real time project which driver did u use ?
Difference between AWT and Swing compenents ?
Is there any heavy weight component in Swings ?
Can the Swing application if you upload in net, be compatible with your browser?
What should you do get your browser compatible with swing components?
What are the methods in Applet ?
When is init(),start() called ?
When you navigate from one applet to another what are the methods called ?
What is the difference between Trusted and Untrusted Applet ?
What is Exception ?
What are the ways you can handle exception ?
When is try,catch block used ?
What is finally method in Exceptions ?
What are the types of access modifiers ?
What is protected and friendly ?
What are the other modifiers ?
Is synchronised modifier ?
What is meant by polymorphism ?
What is inheritance ?
What is method Overloading ? What is this in OOPS ?
What is method Overriding ? What is it in OOPS ?
Does java support multi dimensional arrays ?
Is multiple inheritance used in Java ?
Why is XML used mainly?
Do use coding for database connectivity in XML?
What is DTD ?
Is there any tool in java that can create reports ?
and some general cliche questions..
BASIC JAVA ASSESSMENT QUESTIONS
1) Difference between an abstract class and interface
2) Inner classes
3) Difference between an inner class and a normal class
all the best!
A few others to know?
What is a ClassLoader?
How are ClassLoaders used, when and why?
What is a fully qualified class name?
What is the classpath, and how does it relate to classloaders?
When does the JVM invoke a classloader?
When invoked, how does a classloader handle the loading of a class?
Can you pass classes between classloader, why/whynot?
What is a ClassDefNotFoundError?
What is a ClassCastException?
What is a CircularityError?
How are classes stored in the JVM?
ok can we get answers to all those questions now? lol
ok can we get answers to all those questions now? lolof course not :)
CircularityError :-) what is that?????
This link will help