Contents
Contents
Lab 1 :
1. WAP to print “I am proud to be a student of Nagarjuna College”.
2. WAP to take your name using Scanner and Print your name.
3. WAP to take two Integers from user and print the sum between two number.
Lab 3 :
9. WAP to check whether the given input is Palindrome or not.
11. WAP to print the count of odd number present in a given array.
12. WAP to check if there any prime number present or not in a given array.
Lab 4 :
14. WAP to print the factorial of a user input number.
17. WAP to input marks of 5 subject and display result as per below :
a. > 90 “A”
b. > 80 “B”
c. > 60 “C”
d. > 40 “D”
e. Fail
Lab 5 :
18. WAP to print the sum n number.
Lab 6 :
21. WAP to print the multiplication of two number using two classes i.e. Class A main
class and Class B where we write multiplication function. Then call
Multiplication function from Class B to Class A using Object Reference.
22. WAP to the area and circumference of Circle using Inheritance Concept.
Lab 7 :
23. WAP to create a Class Employee with id,name and salary. Save id,name,salary
and display in console.
24. Write two function with same name with different number of arguments.
Lab 8 :
25. WAP to throw a user defined exception “String Mismatch” if two strings are not
equal.
Lab 9 :
27. WAP to find the square root of 144.
Lab 10 :
31. WAP to create list with String generic type and add some fruits name in It and
print the value from list in console.
32. WAP to create list with Integer generic type and put some numbers in It and
print the sorted list in console.
33. WAP to create list with Integer generic type and add some numbers in It and
print the sum of all elements in list in console.