Mutable data members are those whose values can be changed in runtime even if the object’s type is constant. It is the polar opposite of constant. It is sometimes necessary to modify one or more data members of a class or struct using a const function, even if you do not want the function to […]
October 16, 2022 | C++ | No comments
In Java, the final keyword is used to restrict the user. The final keyword in Java can be used in a variety of situations. Finally, you could say: variable method class The final keyword can be used with variables to create a final variable with no value. It’s also known as an uninitialized final variable […]
May 28, 2022 | Java | No comments
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
this is a Java keyword that refers to the current object of a class. Uses of this keyword: The following are some examples of how to utilize this keyword: this can be used to refer to the current instance variable of a class. this can be used to call the method of the current class […]
May 27, 2022 | Java | No comments
Token The smallest individual unit in a program is known as a token. In fact, every unit that makes a sentence is a token. Java has the following token: Keywords Identifiers Literals Punctuators Operators Keywords Keywords are the words that convey a special meaning to the language compiler. These are reserved for special purposes and […]
April 21, 2022 | Java | No comments