Showing posts with label Java- class level modifiers. Show all posts
Showing posts with label Java- class level modifiers. Show all posts

Java- class level modifiers / Chapter -1/ Access Modifier


java Access Modifier

Access Modifier



Whenever we are writing our own classes we have to provide some information about our class to JVM like:-



  1. whether this class can be accessible from anywhere or not?

  2. Whether child class creation is possible or not?

  3. Whether the object creation is possible or not?


We can answer these questions by using an appropriate modifier.

Class Level Modifiers

 The only applicable modifiers for Top-Level Classes are:-

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com