Define Abstraction. Write down the general syntaxes to declare a single and multidimensional array. What is the use of Scanner Object? Write down the general syntax to create an object of class Test. What is the use of constructor in a class? Define garbage collection. What is the use of finalize() method? When is this keyword explicitly required? What is the use of final keyword?
Group B (5X4 = 20)
1. List and explain three major features of OOP. 2. Write a program in Java to find the sum of squares of N natural numbers. Read the value of N from the user. 3. Create a class Car to read and display the properties like vehicle number, speed, cost, color, brand and model. 4. What do you mean by method overloading? Write a program in Java to support your answer. 5. Write a Program in Java to demonstrate the use of this keyword. Group C (2X5) 1. Implement a Stack class in Java with push() and pop() operations. The constructor must initialize the top of stack to -1. Assume the size of the stack to any value of your choice. 2. Write a program in Java to demonstrate a passing of object as parameter and returning an object from a method.