2. List and explain features of java any 4 . 3. What is Garbage collection in java and Explain use of finalize() Method. 4. Write a program to find the largest between two numbers using ( ? : ) operator. 5. Give use of ‘this’ keyword in java with suitable examples. 6. Explain logical and Relational Operator. 7. Explain difference between constructor and method.
TEST NO – 1 Sub: JAVA Time: 1 hrs. Q.1 ATTEMPT ANY 5 25 MARKS
1. Explain class and object with Example.
2. List and explain features of java any 4 . 3. What is Garbage collection in java and Explain use of finalize() Method. 4. Write a program to find the largest between two numbers using ( ? : ) operator. 5. Give use of ‘this’ keyword in java with suitable examples. 6. Explain logical and Relational Operator. 7. Explain difference between constructor and method.