Which of the following statements are true?
Explanation
Static method can be called from a non-static one (the opposite is not true) since a static method can be called without creation of an instance of the class and it has access only to static fields and methods of the class. private modifier usage does not limit the visibility of a field or method within the class declaration. Nothing prevents the method from being declared as final static.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes