Java Programming Practical Questions

List Of Practicals

  1. Write programs to demonstrate use of: if statements (all forms of  if statement, Switch – Case statement, Different types of Loops(for,while and do..while).
  2. Write programs for implementation of different methods of: String class, StringBuffer class.
  3. Write programs to demonstrate: Use of Array, Use of Vectors.
  4. Write programs using Wrapper Class:
    i) to convert primitive into object.                                  ii) to convert object into primitive.
  5. Develop a program for implementation of different types of constructors.
  6. Develop program to implement:
    i) Single inheritance.                 ii)Multilevel inheritance.
  7. Develop program for implementation of interface.
  8. Write programs to demonstrate use of:
    i) Built in packages                     ii)User defined packages.
  9. Write programs using multithreading.
  10. Write programs for implementation of try, catch and finally block.
  11. Write programs for implementation of throw, throws clause.
  12. Write program to design any type of form using AWT components.
  13. Write program to create a menu bar with various menu items and sub menu items.
  14. Write program to demonstrate the use of border layout. The layout shows four buttons at four sides with captions “left”, “right”, “top” and “bottom” using Swing Components.
  15. Write program to design a calculator to demonstrate the use of grid layout using swing components.
  16. Write program using swing to display a JComboBox in a JFrame.
  17. Write program to create JTree and JTable.
  18. Write program to handle key events and mouse events.
  19. Write program to implement action event in frame using swing components.
  20. Write program to handle text event on swing components.
  21. Write program to retrieve hostname and IP address using InetAddress class.
  22. Write program to demonstrate various methods of:
    i) URL class.                                           ii)URLConnection.
  23. Write program that demonstrates connection oriented communication using socket.
  24. Write program to demonstrate sending and receiving data through datagram.
  25. Write program to:
    i) Create sample database.             ii) Make connectivity with database.
  26. Write program to implement following operations on database:
    i) Insert record.                                     ii) Update record.                                            iii)Delete record.
  27. Write program to demonstrate the use of PreparedStatement.
  28. Write program to retrieve data from table using ResultSet interface. (Use various methods of navigation methods).