Computer Science, asked by aashnakan112, 2 months ago

Define private and public in Java

Answers

Answered by Mrinnocentboy
1

Answer:

hi happie new year......

Answered by tomboy56
0

Explanation:

public means you can access it anywhere while private means you can only access it inside its own class. Just to note all private, protected or public modifier are not applicable to local variables in Java. a local variable can only be final in java

Similar questions