The document is an index of practical programming assignments with their respective dates and signatures. It includes tasks such as writing Java programs for branching statements, creating classes with encapsulation, polymorphism, method overriding, and implementing data structures like linked lists. Each assignment is dated between February and March 2025.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views2 pages
JAVA INDEX Multi P and N
The document is an index of practical programming assignments with their respective dates and signatures. It includes tasks such as writing Java programs for branching statements, creating classes with encapsulation, polymorphism, method overriding, and implementing data structures like linked lists. Each assignment is dated between February and March 2025.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
INDEX
No. Practical Date Signature
1. Write a program to use branching statement and print the total marks 2/2/2025 of student as well as print the percentage of student. According to percentage print the grade of student. 2. Write a program to create pyramid using nested for loop. 4/2/2025 3. Write a java program to take three number from the user and find out 6/2/2025 the largest number from it. 4. Create a program using encapsulation to hide a data member 7/2/2025 empname, empage, and ssn when all data member declares as a private Access modifier for access private data member using getter and setter method 5. Write a java program using polymorphism when shape class is a 8/2/2025 super class and sub class are Triangle, Rectangle, and Circle Write the same name method of all three classes find out the area of all three classes. 6. Write a java program using method overriding create a parent class 10/2/2025 vehicle and another class is car overriding the run method in both classes when car class is a child class. 7. Create a class “Vehicle” with a method “start()” that prints “Vehicle 11/2/2025 started”. Create a subclass “Car” that extends “Vehicle” and overrides the “start()” method to print “Car started”. Create an object of the “Vehicle” class and call the “start()” method. Create an object of the “Car” class and call the “start()” method. 8. Create a class “BankAccount” with a method “deposit()” that adds money to the account. Create two subclasses “SavingsAccount” 13/2/2025 and “CheckingAccount” that extend “BankAccount” and implement the “deposit()” method to add interest to the account balance for savings account and display a message for checking account. 9. Design a class MyStringBufferEx having a data member of type String and add member functions to achieve following task. 15/2/2025 (i) Reverse string (ii) Delete character from specific position (iii) Insert string at given position Write a menu driven program to call these methods of MyStringBufferEx class. The program should not terminate abruptly. 10. Design a class MyString having a data member of type String and 16/2/2025 add member functions to achieve following task. (i) Reverse string (ii) String in Titlecase. (iii) Extract N-characters from right-end of the string Write a menu driven program to call these methods of MyString class. The program should not terminate abruptly. 11. Write a java program when user enter the number and if it was divided 17/2/2025 by 0 than use ArithmeticException and write down the proper output of this program. 12. Write a java program to set the priority of thread and display the name 19/2/2025 of thread and also display the priority which is set by programmer. 13. Write a program which accepts starting character and ending 21/2/2025 character. Display one by one character from starting character till the ending character at the interval of one second using thread. 14. Write a java application which accepts 10 names of student and their 23/2/2025 age. Sort names and age in descending order. Display the names of students using thread class at interval of one second. 15. Write a java program to create util package and use or access the class 25/2/2025 ArrayList using this class add an integer number from the list. 16. Write a java program to create user define package when class A in 27/2/2025 package ‘pack’ and class B accessing class A using the object. 17. Write a java program to implement singly linked list to perform 2/3/2025 different type of operation like Insert, Delete and Display the element. 18. Write a java program to implement Circular singly link list to perform 5/3/2025 different type of operation like Insertion, Deletion and Display the list.