Monday, June 27, 2005

A circular project dependency occurs when two or more projects depend on each other. For example: FileOne in ProjectA depends on FileTwo in ProjectB, and FileThree in ProjectB depends on FileFour back in ProjectA.

How will U solve such dependencies in Java ?

Wednesday, June 22, 2005

Suppose U have a file that needs to be shared between a Java application and a non-Java application for writing/reading. How will U do it ?

Friday, June 17, 2005

Why does the Java language make it mandatory to have wait() and notify() inside a synchronized block?
What's the difference btw the notify() and notifyAll() method?
When should U use what?
Why should wait() and notify() methods be placed inside a synchronized block?

Monday, June 13, 2005

What is a race condition? How is it different from a dead-lock?

Thursday, June 09, 2005

What's the difference between a CORBA object and a servant?

Wednesday, June 08, 2005

  • What are boot-strap classes in Java?
  • What is a Class Loader? Can we write our own Class Loader?
  • What is class Class?

What is obfuscation and how does it work?
How to Decompilers work ?

Monday, June 06, 2005

U develop an application that supports various languages using globalization. How will U compare or sort strings?. Will the == or equals() method suffice?

Thursday, June 02, 2005

What is the double-buffering technique used in almost all GUIs? Do Java Swing components use double-buffering?
  • Can the return type of a overloaded method be different?
  • Can I override a private method of a class? (Remember that private methods are not accessible to subclasses)
  • How is synchronization done between threads?
  • What is a object lock or mutex?
  • What is a class lock? How can we obtain a class lock.
  • Can I use any arbitary object as a lock? (For e.g. Object myLock = new Object() )

  • What's the difference between an ArrayList and a Vector?
  • Can I make a ArrayList shynchronized?
  • What's the difference between a List and a Set?
  • What data-structures have U used in Ur project and what were Ur deciding factors on the choice of collection object?
  • Ever heard of a "Muti-Map" collection object?
  • Which collection object in Java is best if U want fast searching?
  • How will U do a binary search on a ArrayList?
What's the difference between AWT and SWING? Ever heard of SWT?
  • How does GC occur in Java?
  • Ever heard of soft references, weak references, phantom references? What is their use?
  • When do U get a "OutOfMemory" error?
  • What are root nodes?