Computer Science, asked by ajayrajpurohit687, 5 months ago

what keyword we use to define function in Java​

Answers

Answered by Kartik02006
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 sonianshika234
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