Saturday, 17 December 2022

Task orList of Java programs.

 

  • Write a program To display name and age using class 
  • Write a program by Using abstract class To display Employee Name, Salary , age using printInfo method.
  • Write a program To display method print the addition and substraction by using abstraction
  • Develop a program To display student data by using interface 1) Name2) Roll no
  • b) Develop a Simple program of interface mentioned below points;1) Interface name animal2) Method name walk 3) Implements horse class 4) Display the message is – walks on 4 legs
  •  Write a program using single inheritance which Is base class is shape and derived class is circle and calculate the area of circle
  • Write a program using multiple inheritance base class is shape and circle and triangle are derived class and calculate the area of triangle and area of circle
  • Develop a program which show one method (as you want ) is overloaded (method overloading)
  • b) develop a program which implements concepts of overriding(anyexample )
  •  Write a program to show the arithmetic exception using throws
  • Write a program to check the arithmetic exception by using try and catch 
  • Develop a program and write it to files by using Formatter class
  • develop a program in which read the file by using scanner class.
  • Develop a program to select multiple languages known to user.1)Marathi 2)Hindi3)English
  • Write a program to create three buttons  with caption ok , reset, and cancel; 
  •  Develop a program using label (swing) to  display message “Welcome to java”;
  • Java program to illustrate and defining  thread by Extending thread class.
  •  Java program to illustrate and defining  implements extending implements class.
  • Write a program by using arraylist and Add the number 5,2,2,1,3 and remove 2 number index (1) and arranging the ascending order
  • Write a program using hashset to add the a,b,c alphabet and remove the c alphabet and displayed the set and size of this set.
  • Write a program using queue data structure , add  the three aplhabates a,b,c and remove the b 
  • Write a program using hashmap and store the  student data , key is roll no 1,2,3, etc and value is name of student a,b,c and access the name of roll -no = 2 .

No comments:

Post a Comment

GitHub Most Imp Command For Every Developer Learn:

 Top Command for GitHub:  1) git clone 2) git init and git status   3) git add file name  or git add .  4) git commit -m message  5) git rem...