Ivan Vrtacnik
----
Final is a keyword that is relevant to inheritance, not behaviour of the variable in the given class.
Inheritance has nothing to do with the given code. Reference variable "test" is local to main method. Here it means you cannot assign any object to "test" reference variable. But you can do this later in the code...
but not with
test reference because it's final and you cannot re-assign anything to it once you assign an object this case .