what r the main uses of static in java
The Static means that a certain object/variable is resident in memory and accessed each time an instance of a class, an object, is created.
When static is applied to member variables, it means that the static variable is shared among all instances of the class.
When static is applied to methods, the static keyword means that the specified method of the object can be accessed directly, without the need for an instance of that object.
For more information, visit the following link:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.