0% found this document useful (0 votes)
5 views3 pages

java_lab_external_prog

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
5 views3 pages

java_lab_external_prog

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 3

JAVA Lab Record Programs

AY 2024-25 Odd Sem


Part-1

1. Write a program to print prime numbers with in range

2. Write a program to find min, max and average of array elements read from the user

dynamically.

3. Write a program to implement matrix multiplication.

4. Program to demonstrate jagged arrays

5. Program to read n number and display them in sorted order

6. Write a program to demonstrate bitwise operators

7. Program to demonstrate type casting.

8. Create a class Student with attributes such as name, roll number, and marks.

9. Write a program to create five student objects and display details as a report.

10. Program to demonstrate Account class.

11. Program to demonstrate any 15 methods of String class.

12. Write a program to implement Single Inheritance with super keyword. (Account class

SavingsAccount class)

13. Write a program to demonstrate Hierarchical inheritance: Super class - Emp, its

subclasses (PEmp, FEmp). Include necessary fields and methods

14. Write a program to demonstrate MultiLevel Inheritance (Person Emp Manager)

15. Write a program to demonstrate method overloading

16. Write a program to implement Dynamic Polymorphism using Dynamic Method

Dispatch (DMD) concept.

17. Program to demonstrate Abstract class.

18. Program to implement multiple inheritance using interfaces


Create an ArrayStack class which implements Arr (disp() method) and Stack (push() and

pop() methods) interfaces.

19. Program to implement user defined package

20. Write a program to handle any two predefined exceptions using try catch blocks.

21. Write a program to demonstrate user defined exception (AgeException)

22. Write a program to create three user threads by implementing Runnable interface.

23. Write a Program to create Two threads by extending thread class. (One thread finding

the square of given array, other thread converts every character of string to uppercase)

24. Write a Java program that correctly implements producer consumer problem using the

concept of inter thread communication.

Lab Internal-1 on 6th Nov 2024: online GDB Assignments, Lab Record, Oracle Academy

Certificate will be evaluated.

Test includes 2 to three programs from part-1 (24 programs)

Part-2

25. Write a Java program to create File object on a file, and then displays information about

whether the file exists, whether the file is readable, whether the file is writable, the type of

file and the length of the file in bytes. display contents of file.

26. Write a program to copy the data from one file to another using FileIO.

27. Write a Java program to implement serialization concept

28. Write a program to create FileReader on a file and print Type of file, number of

characters, number of words, number of lines

29. Write a Java program to implement iteration over Collection using Iterator interface

and Listlterator interface

30. Write a program to implement LinkedList of product (pid, pname). Implement search,

update and delete based pid.


31. Program to implement sorting using Stack

32. Write a program to check given string is palindrome or not using deque.

33. Write a program to remove duplicates from the list of numbers using HashSet

34. Write a program to demonstrate HashMap. Store Country name and Capital city in Map.

Implement search and remove functionality

35. Write a program to demonstrate TreeMap. Store the Roll number and student name.

Add data in random order and print sorted order, first student data and last student data

36. Write a program to read multiple lines of text and print largest and shortest word using

StringTokenizer

37. Write an AWT program to implement a simple calculator with two TextFields, four

Buttons (named Add, Sub, Mul, Div) and a Label to display results. Use ActionListener to

handle events.

38. Program to demonstrate Mouse Events & Key events.

39. Write a Java program to perform following operations on student data using JDBC

i. create & insert a student record

40. Write a Java program to perform following operations on student data using JDBC

a) select b) update c) delete

Lab Internal-1 on 13th Dec 2024 2.30pm to 4.15pm

You might also like