Java provides a number of access modifiers to help you set the level of access you want for classes as well as the fields, methods and constructors in your classes. A member has package or default accessibility when no accessibility modifier is specified.
Access modifiers in Java help to restrict the scope of a class, constructor, variable, method or data member.
Different types of Access Modifiers
Public: Anything declared as public can be accessed from anywhere.
Private: Anything declared as private can’t be seen outside of its class.
Protected: Anything declared as protected can be accessed by classes in the same package and subclasses in the other packages.
Default modifier: Can be accessed only to classes in the same package.
Java is Object Oriented Programming Language which is used to develop window application, web application, game application etc.
TCCI teach all programming Languages to the school student, college student and any person in Bopal and Satellite in Ahmedabad.
We conduct Online Lecture also.
For more information about Computer coaching at TCCI.
Call us @ 9825618292
Visit us @ http://www.tccicomputercoaching.com