Important Java Mcq 1

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

a. 4

b. “4”

c. ‘4’

d. ‘\4’

Answer:

c. ‘4’

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?