Computer Science, asked by rakshith0701, 5 months ago

method 1: use logic to solve final keyword in variable
method 2: use logics to solve final keyword in method arguments
no spam answers......just answer it correctly ..it's my assignment questions ​

Attachments:

Answers

Answered by sunakat483
0

Answer:

method 1:In the Java programming language, the final keyword is used in several contexts to define an entity that can only be assigned once. Once a final variable has been assigned, it always contains the same value.

method 2:Java always makes a copy of parameters before sending them to methods. This means the final doesn't mean any difference for the calling code. This only means that inside the method the variables can not be reassigned.

Similar questions