Saturday, January 31, 2009

Question With Answer...

Question :Why Wait and notify are kept in Object class although they are used only with
Thread Class...?
Answer : locking mechanism happens at the Object level so
they are in Object Class.
Question : Difference between Swing and AWT...?
Question : Difference between Abstract class and Interface....?
Question :real example of Encapsulation , Inheritance, polymorpisum....?
Question :real example of Deadlock condition...?
Question :Meaning of volatile modifier...?
Question :How to implement serialization...?
Question :what's perfect meaning of Static keyword....?
Question :perfect meaning of final keyword...?

For more clarification let me know...

2 comments:

  1. Hi! I'm new with JAVA and I'm having trouble. May be you can help me.
    I have a JPanel with a JTabbedPane and 3 buttons (Next, Previous and Cancel). Each Tab has a diferent JPanel with different behaivour. When I click "Next", I want to validate that the fields in the selected tab aren't empty and execute the proper code depending on the selected Tab (eg: retrieve a city or a client from the database). And once this code is run I want to show the next tab. When a I leave an empty field, I get the warning but instead of waiting for me to enter the data, it moves on to the next tab. How can I fix this???
    Thanks in advance

    ReplyDelete
  2. Hello vero!
    I hope you are doing great. I gone through about trouble.As soon i will send you Demo code.

    If you have any concern regarding Coding feel free to ask.

    Thanks & regards.

    ReplyDelete