What is the meaning of public in Java?

Charlotte Hall | 2023-05-05 14:09:45 | page views:1040
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Scarlett Brown

Studied at the University of Cambridge, Lives in Cambridge, UK.
public is a Java keyword which declares a member's access as public. Public members are visible to all other classes. This means that any other class can access a public field or method. Further, other classes can modify public fields unless the field is declared as final .
2023-05-10 14:09:45

Alexander Davis

QuesHub.com delivers expert answers and knowledge to you.
public is a Java keyword which declares a member's access as public. Public members are visible to all other classes. This means that any other class can access a public field or method. Further, other classes can modify public fields unless the field is declared as final .
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4