java_lab_external_prog
java_lab_external_prog
2. Write a program to find min, max and average of array elements read from the user
dynamically.
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.
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
20. Write a program to handle any two predefined exceptions using try catch blocks.
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
Lab Internal-1 on 6th Nov 2024: online GDB Assignments, Lab Record, Oracle Academy
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.
28. Write a program to create FileReader on a file and print Type of file, number of
29. Write a Java program to implement iteration over Collection using Iterator interface
30. Write a program to implement LinkedList of product (pid, pname). Implement search,
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.
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.
39. Write a Java program to perform following operations on student data using JDBC
40. Write a Java program to perform following operations on student data using JDBC