2
Exercise 3 1) What is meant by Object Oriented Programming? 2) What is a Class? 3) What is an Object? 4) What is an Instance? 5) What are the core OOP's concepts? 6) What is meant by abstraction? 7) What is meant by Encapsulation? 8) What is meant by Inheritance? 9) What is meant by Polymorphism? 10) What is an Abstract Class? 11) What is an Interface? 12) What is a base class? 13) What is a subclass? 14) What is a superclass? 15) What is a constructor? 17) What is meant by Binding? 18) What is meant by static binding? 19) What is meant by Dynamic binding? 20) Define Modularity? 21) What is meant by Persistence? 22) What is colloboration? 23) In Java, How to make an object completely encapsulated? 24) How is polymorphism acheived in java? 25) Which package contains exception handling related classes? 26) What are the two types of Exceptions? 27) What is the base class of all exceptions? 28) What is the difference between Exception and Error in java? 29) What is the difference between throw and throws? 30) Differentiate between Checked Exceptions and Unchecked Exceptions? 31) What are User defined Exceptions? 32) What is the importance of finally block in exception handling? 33) Can a catch block exist without a try block?

Exercise 3

Embed Size (px)

DESCRIPTION

java excercise 3

Citation preview

Page 1: Exercise 3

Exercise 31) What is meant by Object Oriented Programming? 2) What is a Class? 3) What is an Object? 4) What is an Instance? 5) What are the core OOP's concepts? 6) What is meant by abstraction? 7) What is meant by Encapsulation? 8) What is meant by Inheritance? 9) What is meant by Polymorphism? 10) What is an Abstract Class? 11) What is an Interface? 12) What is a base class? 13) What is a subclass? 14) What is a superclass? 15) What is a constructor? 17) What is meant by Binding? 18) What is meant by static binding? 19) What is meant by Dynamic binding? 20) Define Modularity? 21) What is meant by Persistence?22) What is colloboration? 23) In Java, How to make an object completely encapsulated? 24) How is polymorphism acheived in java? 25) Which package contains exception handling related classes?26) What are the two types of Exceptions? 27) What is the base class of all exceptions? 28) What is the difference between Exception and Error in java? 29) What is the difference between throw and throws? 30) Differentiate between Checked Exceptions and Unchecked Exceptions? 31) What are User defined Exceptions? 32) What is the importance of finally block in exception handling? 33) Can a catch block exist without a try block? 34) Can a finally block exist with a try block but without a catch? 35) What will happen to the Exception object after exception handling? 36) The subclass exception should precede the base class exception when used within the catch clause. True/False? 37) Exceptions can be caught or rethrown to a calling method. True/False? 38) The statements following the throw keyword in a program are not executed. True/False? 39) How does finally block differ from finalize() method? 40) What are the constraints imposed by overriding on exception handling? 41)What is the difference between an if statement and a switch statement? 42Can a method be overloaded based on different return type but same argument type ?