Exam 3: Java Programming: Data Types, Inheritance, Interfaces, Packages, and Exception Handling

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

Which of these access specifiers can be used for an interface?

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

A

The keyword used to create a package is

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

B

Which of these keywords is not a part of exception handling?

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

C

Which of this access specifies can be used for a class so that its objects can be created by a different class in another package?

(Multiple Choice)
4.7/5
(36)

Which of these keywords must be used to monitor for exceptions?

(Multiple Choice)
4.9/5
(40)

Which of these is a mechanism for naming and visibility control of a class and its content?

(Multiple Choice)
4.8/5
(46)

Which of these classes is related to all the exceptions that can be caught by using catch?

(Multiple Choice)
4.9/5
(37)

Which of these method of class String is used to obtain length of String object?

(Multiple Choice)
4.9/5
(36)

Which of these is used as default for a member of a class if no access specifier is used for it?

(Multiple Choice)
4.8/5
(44)

Which of these classes is related to all the exceptions that cannot be caught?

(Multiple Choice)
4.8/5
(36)

Which of these method of class String is used to extract a single character from a String object?

(Multiple Choice)
4.8/5
(34)

Which of the following is correct way of importing an entire package 'pkg'?

(Multiple Choice)
4.7/5
(41)

A primitive data type can be passed as an argument into a method

(Multiple Choice)
4.9/5
(40)

Which of the following is incorrect statement about packages?

(Multiple Choice)
4.7/5
(33)

Which of the following is correct way of implementing an interface salary by class manager?

(Multiple Choice)
4.9/5
(35)

The code within the ----------- block will always be executed whether or not an exception is thrown.

(Multiple Choice)
4.8/5
(43)

Which of these is correct way of inheriting class A by class B?

(Multiple Choice)
4.7/5
(36)

Which of these keywords is used to manually throw an exception?

(Multiple Choice)
4.8/5
(40)

Which of the following are true about interfaces.

(Multiple Choice)
4.8/5
(34)

Which of these can be used to fully abstract a class from its implementation?

(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 25
close modal

Filters

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