Ayushi Jain 19BCE1576: CSE1007 - Java Programming Lab 2 12 - 02 - 2021
Ayushi Jain 19BCE1576: CSE1007 - Java Programming Lab 2 12 - 02 - 2021
Lab 2
12_02_2021
AYUSHI JAIN
19BCE1576
1. Write a program that creates and initializes a four-element int array. Calculate and
display the average of its values.
2. Write a program that creates a 2-d array with int values the first element should be an
array containing 32. The second array should be an array containing 500 and 300 .The
third element should be an array containing 39.45 and 600.Declare, allocate and
initialize the array display its length and elements.
3. Write an application that accepts two doubles as its command line arguments,
multiple these together and display the product.
4. Write an application that accepts one command line argument; display the line of
reporting if number is even or odd.
5. Write a program to implement all string operations
6. Write a program to implement all string Buffer operations
7. Write a program to find area of geometrical figures using method
8. Write a program to implement constructor overloading by passing different
9. number of parameter of different types
10. Write a program to implement constructor overloading by passing different
11. number of parameter of different types
12. Write a program to implement constructor overloading by passing different
13. number of parameter of different types
14. Write an application that accepts radius of a circle as its command line argument
display the area.
15. Write a program that describes a class person. It should have instance variables to
record name, age and salary. Create a person object. Set and display its instance
variables.
16. Write a Program to implement constructor overloading by passing different number of
parameters of different types