Wednesday 5 October 2011

ASSIGNMENT TWO MARK QUESTIONS:


  1. What is the difference between static and non-static variables?\
  2. What is the purpose of finalization?
  3. What is the difference between the String and String Buffer classes?
  4. Can an abstract class be final? Why?
  5. What is an anonymous inner class and static inner class?
  6. What is the difference between the File and Random Access File classes?
  7. What are the advantages of the event-delegation model?
  8. What happens if an exception is not caught?
  9. What is the use of Reflection API?
  10. What are three ways in which a thread can enter the waiting state?
  11. Give thae properties of abstract class and methods.
  12. Why does java not support destructors and how does the finalize method will help in garbage collections?
  13. Write a declaration to convert the value of “Programmer” in the string variable ‘convert’ to Programming”.
  14. Distinguish between dynamic and static binding. What are the advantages of the event-delegation model?
  15. Define Proxy class and its methods.
  16. State the properties of interface.
  17. Write down the statements used to create a JFrame and a JButton and then add the JButton to the JFrame.
  18. List any two advantages of type parameters.
  19. When would you use the CountDownLatch synchronizers and Exchange Synchronizers?
  20. When do the following events occur?
a.      i)AdjustmentEvent   ii)ItemEvent
21.  .Define bounded type  and wildcards in Generics.
22.  What is the use of semaphore?
23.  What are the two ways twoimplement Generic programming?
24.  define thread synchoranization.
25.  Define box layout.
26.  what is the use of Server and ServerSocket class.
27.  Define GregorianCalendar class.
28.  Explain about sophiscated layout management.
29.  Define the JToolBar,JSlider and JProgressBar
30.  Explain about Generic array code.

No comments:

Post a Comment