Exam 2: Java Object-Oriented Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which is the keyword used to inherit a class to another?

Free
(Multiple Choice)
5.0/5
(28)
Correct Answer:
Verified

B

The method sqrt() is defined in the class

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

C

Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.

Free
(Multiple Choice)
4.7/5
(42)
Correct Answer:
Verified

A

The keyword used to refer the current object

(Multiple Choice)
4.8/5
(34)

Which of these is not a correct statement?

(Multiple Choice)
4.8/5
(31)

_________ is used to initialize objects.

(Multiple Choice)
4.8/5
(36)

Which method defined in Integer class can be used to convert a whole number in string type to primitive int type.

(Multiple Choice)
4.9/5
(36)

Identify the type of inheritance when two or more subclasses inherit the properties of a super class.

(Multiple Choice)
5.0/5
(35)

The keyword used inside a class to refer to its immediate super class is

(Multiple Choice)
4.8/5
(44)

If a class inheriting an abstract class does not define all of its function then it will be known as?

(Multiple Choice)
4.9/5
(39)

Which of these keywords are used to define an abstract class?

(Multiple Choice)
4.8/5
(46)

Which of the following is true in the case of abstract class

(Multiple Choice)
4.9/5
(31)

Which of the following is a valid declaration of an object of class Box?

(Multiple Choice)
4.8/5
(37)

The use of final keyword with method definition

(Multiple Choice)
5.0/5
(28)

Which class cannot have a subclass in java

(Multiple Choice)
4.8/5
(37)

Which of these access specifiers must be used for main() method?

(Multiple Choice)
4.8/5
(36)

Which of the following is a method having same name as that of its class?

(Multiple Choice)
4.9/5
(34)

The keyword used to create an object

(Multiple Choice)
4.8/5
(36)

Variables declared with in a class are called

(Multiple Choice)
4.9/5
(51)

Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?

(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 24
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)