WHAT DOES THE STATIC WORD MEANS IN JAVA? WHAT MEANS THAT AN OBJECT IS BEING PASSED AS A REFERENCE OR AS
A VALUE?

Subject Android
Institute Ahsanullah Institute of Information and Communication Technology 2012

In general terms, the word static means that a member of a class can be accessed without instantiating an object of its class.

Is it possible to override static methods in Java? The answer is no, because overriding is based on dynamic binding at runtime, and static members are being bound during compilation time.

When an object is being passed to a function by value, a copy of the object is passed and the original object is never modified. The opposite applies to an object passed as a reference: the object itself is sent to the function being directly modified.

An object in Java is always passed by value.

Login to post your comment.