Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
In Java, you have got something called access modifier, which specifies accessibility of class, methods and variables. There is four access modifier in Java namely public, private, protected and the default access modifier, also known as package level modifier. The difference between these access modifier comes in their ability to restrict access to a class, method or variables, public is the least restrictive access modifier while private is the most restrictive access modifier, package and protected lies in between. Read more at: http://www.java67.com/2015/08/difference-between-public-private-and-protected-in-java.html#ixzz5pEiadiIh Thanks
28th May 2019, 4:11 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar