Jyotsna Varma:
- I would recommend looking on this forum for possible questions - use the search facility.
- Also - go over SCJP2 exam questions. Your questions at interview won't be as difficult - but the exam qill give an idea of the core subjects
you should know.
----
- I doing this "on the fly" - so bear with me. Questions I think you will get:
1. Explain differences public, private, friendly, default.
2. List Java primitivie types w/size.
3. Explain basic
Thread lifecycle and give the two examples of how to create threads and start them. (ie: extend Thread & implement Runnable)
4. Without using the reverse() method - give source code example of how you would reverse a
string.
5. You will get some OOA&D questions like give an example of inheritance or
polymorphism. What is a class? What is encapsulation?
6. May be given a method --- you pass local variables to a method which changes their value
--- what is the value of variables inside method versus outside of method.
7. May be given another method --- you pass global (class) variables to the method which changed their value --- what is value of variables inside versus outside of method.
What if method "returns" value of a local method.
8. Implements vs. Extends.
9. Abstract Class vs Interface -- explain difference. Give examples.
10. Show me how to build a stack or queue --- explain in text - and give me a source code example.
11. Might be asked bout Collections & Hashtables. I got hit with these a few times There is a table you memorize regarding Collections for the SCJP2 exam --- which you can recall. They wanted basic drawing of how hashtable worked. Can give simple example if need be.
----
That's about it. If you have CS degree - may not even get technical questions - it's happened before.
Johnny
P.S. Let us know if you gotthe gig - and also let us know what questions were asked of yout at interview.