A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

What is Default Access Modifier - No keyword:

Default Access Modifier - No keyword:

Default access modifier means we do not explicitly declare an access modifier for a class, field, method etc.

A variable or method declared without any access control modifier is available to any other class in the same package. 

The fields in an interface are implicitly public static final and the methods in an interface are by default public.

Variables and methods can be declared without any modifiers, as in the following examples:
String version = "1.5.1";

boolean processOrder() 
          return true;