- What is the flaw with the Stack class?
- Explain the Java Class loader mechanism. How would you prevent someone from overriding the java.lang.Object class?
- Can interfaces contain inner classes?
- Explain how you would get a Thread Deadlock with a code example?
- What happens when you try to serialize a class whose base class does not implementserializable?
- What happens if you try to pass an int variable to a function that accepts only:
a) long b) Double() c) Number() ? - How can you prevent flow of control to a finally { } clause?
- I write two classes : I write a static method in the base class and override that static method in the child class. Will this code compile?
- Write a program that prints a.b.c.a.b.c...and so on 100 times using threads?
- What happens if you try to start a thread thats already been started?
You might also like this
Please share your faced interview questions by faqs@javastuff.in, which can help job seekers as well as java learners.