Final Arguments

Final Arguments

Method argument are basically a type of variable declaration , which is appear in b/w the parenthesis in the method declaration ,A typical method declaration are following as : 

public Record getRecord(int fileNumber, int recordNumber) {}

method argument is similarity as a local variables . in the above code we can see that fileNumber and recordNumber both follows rules of local variables .e can also have a modifier final :


public Record getRecord(int fileNumber, final int recordNumber) {}           

By:UMANG
Date:2024-02-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related SCJP1.5 chap2 Links

SCJP1.5 chap2 interview questions and answers for experienced and fresher