Computer Science, asked by karthik99, 1 year ago

what is use of public in java

Answers

Answered by Keshav100
1
public is a Java keyword which declares a member's access as publicPublicmembers 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 .

karthik99: i didn't understand
Similar questions