JavaInterviewQuestionsAndAnswers icon indicating copy to clipboard operation
JavaInterviewQuestionsAndAnswers copied to clipboard

Question 76 WHAT IS A FINAL ARGUMENT? phrasing

Open surachaitanya opened this issue 6 years ago • 1 comments

Shouldn't it say "parameter" instead of "argument", to be really precise?

surachaitanya avatar Jan 26 '19 09:01 surachaitanya

One more interesting argument, although it changes a bit with Java 8, but non-the-less interesting: As a formal method parameter is a local variable, you can access them from inner anonymous classes only if they are declared as final. (https://stackoverflow.com/a/4162717/2052354)

surachaitanya avatar Jan 26 '19 09:01 surachaitanya