forum

home / developersection / forums / what is the difference between protected, public, package-private, and private in java?

What is the difference between protected, public, package-private, and private in Java?

Utpal Vishwas 460 21-Jul-2023

What is the difference between protected, public, package-private, and private in Java?


Updated on 22-Jul-2023
Utpal Vishwas

Student

I am Utpal Vishwas from Uttar Pradesh. Have completed my B. Tech. course from MNNIT campus Prayagraj in 2022. I have good knowledge of computer networking.

Can you answer this question?

Answer

1 Answers

Liked By