adplus-dvertising
frame-decoration

Question

What is the use of Access modifier "pubic" in Java language?

a.

To hide themain method from misuse

b.

To call the main method outside of Class or Package by JVM

c.

To protect main method

d.

None of the above

Answer: (b).To call the main method outside of Class or Package by JVM

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the use of Access modifier "pubic" in Java language?