coderz.py

Keep Coding Keep Cheering!

Static keyword in Java

In Java, the static keyword is mostly used to control memory. It is also used to share a class’s identical variable or method. Static keywords can be used with variables, methods, blocks, and nested classes. The static keyword refers to a class rather than a specific instance of that class. A constant variable or a […]

May 28, 2022 | Java | No comments

Variables in Java

Variables represent named storage locations, whose values can be manipulated during the program run. For instance, to store the name of a student and marks of a student during a program run, we require storage locations that are too named so that these can be distinguished easily. Declaration of variables: The declaration of a variable […]

April 21, 2022 | Java | No comments

Advertisement