Discussion :: 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();
Answer : Option D
Explanation :
All the given statements are legal declarations.
Be The First To Comment