TEST 2

Please enter your email:

1. Data Abstraction means

 
 
 
 

2. Which abstract class is the super class of all classes used for writing bytes ?

 
 
 
 

3. Which keyword is used to for define abstract class ?

 
 
 
 

4.

What is the syntax of abstract class in java?

 
 
 
 

5.

Which of these is not abstract?

 
 
 
 

6.

Which of these packages contains abstract keyword?

 
 
 
 

7.

Which of these is not a correct statement?

 
 
 
 

8.

A class which is declared with the ________ keyword is known as an abstract class in Java.

 
 
 
 

9.

Abstract class can have constructors and static methods?

 
 
 
 

10.

A method which is declared as abstract and does not have implementation is known as an _____________?

 
 
 
 

11. Why use of inheritance?

 
 
 
 

12. Which of these keyword must be used to inherit a class ?

 
 
 
 

13. To create an Abstract class, the keyword “class” is also required. State TRUE or FALSE.

 
 

14. Can you create an object from an abstract class in Java?

 
 

15.

Which of these keywords is used to refer to member of base class from a sub class?

 
 
 
 

16. Which of these is correct way of inherit class A into class B ?

 
 
 
 

17. A class member declared protected becomes a member of subclass of which type

 
 
 
 

18. Which one advantage of Abstraction?

  1. Reduces complexity
  2. Avoid code duplication
  3. easy the burden of maintenance
  4. Increase Security and confidentiality
 
 
 
 

19.

 Which is the opposite of an Abstract Class?
 
 
 
 

20.

 An abstract class in Java usually contains one or more abstract ____.
 
 
 
 

21.

Choose a correct statement about abstract classes?
 
 
 
 

22.

An abstract class can define ____ inside of it.
 
 
 
 

23. Which one type of inheritance are not allow in java ?

 
 
 
 

24. chain of inheritance, it is known as:

 
 
 
 

25. When two or more classes inherits a single class, it is known as

 
 
 
 

26. Multiple Inheritance , successfully  run with :

 
 
 
 

27. we can achieve hybrid inheritance only :

 
 
 
 

28. this statement , Any constructor are not inherited by subclass,

 
 
 
 

29. create object for any abstract class

 
 
 
 

30. Can we define static method in an abstract class  ?

 
 
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *