Java Programming Questions & Answers: part5



Software Programming : Java Programming QUESTIONS AND ANSWERS :: part5 : 11 to 15

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

11.In Java, declaring a class abstract is useful

To prevent developers from further extending the class
When it doesn't make sense to have objects of that class
When default implementations of some methods are not desirable
To force developers to extend the class not to use its capabilities
When it makes sense to have objects of that class.

12.Given a class named student, which of the following is a valid constructor declaration for the class?

Student (student s) { }
Student student ( ) { }
Private final student ( ) { }
Void student ( ) { }
Static void student(){ }.

13.The concept of multiple inheritance is implemented in Java by I. Extending two or more classes. II. Extending one class and implementing one or more interfaces. III. Implementing two or more interfaces.

Only (II)
(I) and (II)
(II) and (III)
Only (I)
Only (III).

14.Object oriented inheritance models the

"is a kind of" relationship
"has a" relationship
"want to be" relationship
inheritance does not describe any kind of relationship between classes
“contains” of relationship.

More Java Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If you are not willing to risk the usual you will have to settle for the ordinary- Jim Rohn