Java Programming Practical Questions
List Of Practicals
- 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).
- Write programs for implementation of different methods of: String class, StringBuffer class.
- Write programs to demonstrate: Use of Array, Use of Vectors.
- Write programs using Wrapper Class:
i) to convert primitive into object. ii) to convert object into primitive. - Develop a program for implementation of different types of constructors.
- Develop program to implement:
i) Single inheritance. ii)Multilevel inheritance. - Develop program for implementation of interface.
- Write programs to demonstrate use of:
i) Built in packages ii)User defined packages. - Write programs using multithreading.
- Write programs for implementation of try, catch and finally block.
- Write programs for implementation of throw, throws clause.
- Write program to design any type of form using AWT components.
- Write program to create a menu bar with various menu items and sub menu items.
- 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.
- Write program to design a calculator to demonstrate the use of grid layout using swing components.
- Write program using swing to display a JComboBox in a JFrame.
- Write program to create JTree and JTable.
- Write program to handle key events and mouse events.
- Write program to implement action event in frame using swing components.
- Write program to handle text event on swing components.
- Write program to retrieve hostname and IP address using InetAddress class.
- Write program to demonstrate various methods of:
i) URL class. ii)URLConnection. - Write program that demonstrates connection oriented communication using socket.
- Write program to demonstrate sending and receiving data through datagram.
- Write program to:
i) Create sample database. ii) Make connectivity with database. - Write program to implement following operations on database:
i) Insert record. ii) Update record. iii)Delete record. - Write program to demonstrate the use of PreparedStatement.
- Write program to retrieve data from table using ResultSet interface. (Use various methods of navigation methods).