0% found this document useful (0 votes)
20 views2 pages

Practical Exam Questions

The document outlines a series of programming tasks and exercises for students, covering various topics in Java such as checking even or odd numbers, implementing classes and inheritance, working with GUI components, and database operations. Each student is assigned different programming challenges, including string manipulation, multithreading, exception handling, and network programming. The tasks aim to enhance the students' understanding of Java programming concepts and practical applications.

Uploaded by

demologalac01
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)
20 views2 pages

Practical Exam Questions

The document outlines a series of programming tasks and exercises for students, covering various topics in Java such as checking even or odd numbers, implementing classes and inheritance, working with GUI components, and database operations. Each student is assigned different programming challenges, including string manipulation, multithreading, exception handling, and network programming. The tasks aim to enhance the students' understanding of Java programming concepts and practical applications.

Uploaded by

demologalac01
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/ 2

Sakshi Kambale

1.Write a program to check no is even or odd.


2.Write a program to display 1 to 20 numbers using for loop.
3.Write a program to implement all methods of StringBuffer class.
4.Write a program to implement all methods of String class.
Gayatri
5.Define a class Student with int id and string name as data memebers and a method with void setData().accept and display data for five students.
6.Write a program to Define a class employee having data members as emp_id, name and salary accept and display data for five employees.
7.Write a program to insert different elements in the Vector & display them.
8.Write a Java program in which thread A will display the even numbers between 1 to 50 and thread B will display the odd numbers between 1 to
50. After 3 iterations thread A should go to sleep for 500 ms.
Yashin
9.Write a program to show the Hierarchical inheritance.
10. Write a program to implement multilevel inheritance.
11. Write a program to implement default and parameterized constructor.
12. Implement the following inheritance

Swamiraj
13. Develop a program to accept a password from the user and throw “Authentication Failure” Exception if the password is incorrect.
14. Write a program to create three Buttons with Caption OK ,RESET and CANCEL
15. Design a Jframe to demonstrate the use of Radio Button and Checkbox.
16. Write a program to generate following output using Border Layout
Rutuja
17. Write a program to generate following output

18. Write a Java program to create a table of Name of Student, Percentage and Grade for 5 students using JTable.
19. Write a program to implement MouseMotionListener interface.
20. Write Java Program to display following output.

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

Pratiksha
22. Write a program to insert and retrieve a record in Student table of database1.
23. Write a simple program to open a connection with database.
24. Write a program to update a record in Student table of database1 using PreparedStatement interface
25. Write a program to insert a record in Student table of database1.
26. . Develop a program to update a record in database table using PreparedStatement
Sanket
27. Write program to delete data from Student table of database1 using Statement interface..
28. Implement a java program using ServerSocket class methods getInetAddress(), getLocalPort()
29. Implement a java program using Socket class methods getInetAddress(), getPort(),getLocalPort(),getLocalAddress
30. Define an exception called 'No Match Exception' that is thrown when the password accepted equal to "MSBTE'. Write the program.
31. create a package and import it with suitable example.

You might also like