News

One of the most important topic that we encounter in java. we can use static with class name, methods name, variables name and block. static keyword mainly used for memory management. static variable ...
Note : main method is a static method , If we remove static , then it is a non static method ,to access non static method we need to create object . Since our main method is the starting point of ...
Java’s main function. Java’s main method is composed of six terms — three reserved words, the main method name, a reference type and a variable name: public – Java’s main function requires a public ...
If a final is assigned to a variable, the variable behaves likes a constant. It means that the value of variable once set cannot be changed. This keyword is used to prevent concurrency. Synchronized ...
Keywords const vs. final in Java. The final keyword can be considered the Java languages equivalent for const.. If a Java developer wants a variable to be constant, they mark that variable as final.A ...