Computer Science, asked by srthk15092003trpthi, 1 year ago

what is 'public' in java

Answers

Answered by RAAJSRIWASTAV3
1
Public=> A keywords that is used an access modifier for method & variables.
Answered by simransahu94
2
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.

hope it helps u frnd plzz mark as brainliest
Similar questions