what keyword we use to define function in Java
Answers
Answered by
1
Answer:
please follow me
Explanation:
We have already used the void keyword as the return type in defining a method or a function. The void data type specifies an empty set of values and it is used to create a method that does not return any value.
Answered by
1
Answer:
The this keyword refers to the current object in a method or constructor. The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name (because a class attribute is shadowed by a method or constructor parameter).
Similar questions
Computer Science,
2 months ago
Math,
2 months ago
Chemistry,
2 months ago
English,
5 months ago
Math,
5 months ago
Math,
10 months ago
Social Sciences,
10 months ago