What is the area enclosed in class and not enclosed in any method or block called in java?
What operations can we do here?
Is there a concept of global in java?
What is the area enclosed in class and not enclosed in any method or block called in java?
What operations can we do here?
Is there a concept of global in java?
Java has no concept of "global". Classes have their own main scope which is the top level scope. You can only declare class member fields (class variables, or properties as its called in some languages like python, kotlin, c#, c++, etc) or methods, constructors, static blocks, or inner classes. The only way to access them is if they're visible and either declared static or accessed via an instance.
As you've found, you can declare methods. You can also declare/initialize fields, constructors, nested interfaces and classes; as well as static and instance initialization blocks.
The area is called the class body
A class body may contain declarations of members of the class, that is, fields (§8.3), methods (§8.4), classes (§8.5), and interfaces (§8.5).
A class body may also contain instance initializers (§8.6), static initializers (§8.7), and declarations of constructors (§8.8) for the class.
There is no concept of, or any keyword for global, but a public, static variable in a class of your choice can be used effectively as a global variable ( accessible from anywhere inside your code).
As already mentioned in the comments a concept often used in java to perform "global" o unique operations, is a Singleton (design pattern) - a class you can have only one instance of (you can use it's constructor only once). That instance is stored in a static field of it's class, so in a way using a trick I've already mentioned (accessible by getter, rather than public).
I'm not aware of a precise name of the inside of a class in Java, but what you do there is mostly declare fields and sub classes ( and of course methods, but you've already mentioned that).