Let’s assume you have one class called Employee, there you have two instance-level variable name and age, one static variable code, two methods showName( ) and showAge( ).

When you compile this class, the compiler will create a method without a name. And it will consist all the instance variables and all the static variables.

Let’s say if your class does not have any static and instance variables, then the not-named method will not be created by the compiler.

So, the compiler created the not-named method if and only if your class has at least one static variable or at least one instance variable.

That not-named method is known as the Method-method.