Basic Java Programming Quiz 2

Description: Basic Java Programming Quiz 2
Number of Questions: 13
Created by:
Tags: java
Attempted 0/13 Correct 0 Score 0
  1. A methods in object

  2. An operator and keyword

Correct Option: B

Can you compare a boolean to an integer?

  1. Yes

  2. No

Correct Option: B

If class A implements an interface does it need to implement all methods of that interface?

  1. Yes, always.

  2. No, not when A is abstract

Correct Option: B

How can you prevent a member variable from becoming serialized?

  1. By marking it private

  2. By marking it volatile

  3. By marking it transient

  4. You can not.

Correct Option: C
- Hide questions