Important Java Mcq 1

Which of the following is the correct expression of character a?

a. ‘a’

b. “a”

c. a’

d. a

Answer:

a. ‘a’

Explanation:

Whenever character literals are written, they should be enclosed inside the single quotes.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?