I will initially add only questions, and as and when i get some time, I will also put answers. However, others are welcome to add answers. Needless to say, correct me if i go off the track.
This is going to be an ongoing effort and I promise to make this list bigger and as relevant as possible. This is going to be a fun...
Difference between Interface and Abstract class.
here goes the answer
What is autoboxing.
What is the difference between wait and sleep.
Explain valoatile modifier. How is it different to synchronize keyword?
Explain final, finally and finalize.
Whats the difference between yield , wait and sleep?
1 comment:
1. wht will be the result of "(i++)++".
Ans: Its an intresting one, try it out. Error message says it all :).
2. When a thread runs on a syncronized section then it obtains object lock. So does that mean any other thread can't access a non syncronized region?
Ans: Object lock is meant only for synchronized section. A non syncronized area can be accessed at any point of time irrespective of lock.
3. If we have an object of class which implements an interface then wht will be the result of "object instanceOf interfacename"?
Ans : True.
Post a Comment