0% found this document useful (0 votes)
7 views5 pages

Practical Questions

The document outlines a series of practical programming tasks in Java, including creating GUI applications, handling user input, and implementing networking features. Tasks range from displaying messages and using layout managers to developing client-server applications and database operations. Each task is designed to enhance understanding of Java programming concepts and GUI components.

Uploaded by

yashaswi Walunj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Practical Questions

The document outlines a series of practical programming tasks in Java, including creating GUI applications, handling user input, and implementing networking features. Tasks range from displaying messages and using layout managers to developing client-server applications and database operations. Each task is designed to enhance understanding of Java programming concepts and GUI components.

Uploaded by

yashaswi Walunj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Practical Questions :-

1. Develop a Java program that displays a message ‘Welcome to Java’


using a label, allows the user to select multiple languages they know
(e.g., Marathi, Hindi, English, Sanskrit) through checkboxes, and
includes three buttons labeled OK, RESET, and CANCEL, each
performing the respective actions.

2. Write Java Program to show following output :-

3. Develop a Java applet or application that uses List components to


display and allow selection of multiple items, including a list of 10
different city names and a list of various newspaper names.

4. Write a Java program that demonstrates a 5x5 grid layout and displays
buttons labeled with numbers from 0 to 9 within the grid.

5. Write a program to generate following output using Border Layout :-


6. Write Java Program to display following output :-

7. Write a program which creates Menu of different colors and disable


menu item for Black color.

8. Write a program code to generate the following output :-


9. Write a program to develop a frame to select the different states of
India using JComboBox.

10. Write a program code to generate the following output :-

11. Write a Java program to create a table using JTable that displays
the name, percentage, and grade for 10 students. Include a scrollbar to
allow easy navigation through the table.

12. Write a Program using JProgressBar to show the progress of


Progressbar when user clicks on JButton.

13. Develop a program to accept two numbers and display product


of two numbers when user pressed “Multiply” button.
14. Write a program to demonstrate the use of mouseDragged and
mouseMoved method of MouseMotionListener.

15. Write a program using JPasswordField to accept password from


user and if the length is less than 6 characters then error message
should be displayed “Password length must be >6 characters”

16. Develop a program using InetAddress class to retrieve IP


address of computer when hostname is entered by the user.

17. Write a program using URL class to retrieve the host, protocol,
port and file of URL http://www.msbte.org.in

18. Write a program to develop prime number Server (Client will


send any number to server, Sever will send the response the number is
prime or not)

19. Write a program using DatagramPacket and DatagramSocket to


create chat application.

20. Write a Program to create a Table in database and Select, Insert


and Update a record in that table.

21. Write a program to delete a record from a table.

22. Write a Program to display following output in browser Window :-


23. Write a Program to send the username to server and server will
send the length of username to client.

24. Write a Program to send the username to server and server will
send the length of username to client.

25. Develop a servlet program to create an HTML form that collects


student information, including Name, Gender, Mobile Number,
Department, Enrollment/Roll Number, and Result (Pass/Fail). The form
should include a Submit button, and upon submission, the servlet
should process and display the entered information.

You might also like