Home » Java Programming » Declarations and Access Control

Which of the following is/are legal method declarations? protected abstract void m1(); static final void m1(){} synchronized public final void m1() {} private native void m1();

Correct Answer: All of them are legal declarations.

Explanation:

All the given statements are legal declarations.

← Previous Question Next Question→

More Questions from Declarations and Access Control

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion