Important Java Mcq 1

Invalid write method declaration?

a. Write()

b. write()

c. put()

d. Both a and c

Answer:

 d. Both a and c

Explanation:

The correct way to declare a write method is “write()”. Remaining other declarations are invalid declarations of write method.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?