what is static in javastatic means one per class


What is static in java?

Static means one per class, not one for each object no matter how many example of a class might exist. This means that you can use them without making an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object.

A static method in a super class can be shadowed by another static method in a subclass, as long as the unique method was not declared final. Though, you can't override a static method with a nonstatic method. In other words, you can't alter a static method into an instance method in a subclass.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: what is static in javastatic means one per class
Reference No:- TGS0310970

Expected delivery within 24 Hours