What does public mean in java?

Java

1 answer

Answer

1139043

2026-05-18 19:56

+ Follow

The keyWord public is an access specifier. A variable or a method that is declared public is publicly accessible to any member of the project. Any class or method can freely access other public methods and variables of another class.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.