What are method parameters in Java?
Advertisements
प्रश्न
What are method parameters in Java?
लघु उत्तरीय
Advertisements
उत्तर
Method parameters in Java are variables declared within the parentheses of a method definition. They are used to receive values passed to the method when it is called. These parameters act as local variables and can be accessed only within the method in which they are declared.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Variables and Expressions - SHORT ASSIGNMENTS [पृष्ठ १३६]
