Computer Science, asked by rajugu2323, 5 months ago

14. Find the errors- Assume
variable is already given. public
int getdata() {
result=num1+num2;
System.out.println("Result
is:"+result); }
O Variable declarations
O Access Modifiers
O Method definition
O return statement​

Answers

Answered by sangeetha999
2

Answer:

return statement

Explanation:

Assuming variables are declared i.e, num1,num2,result

getdata() method used to receive data and that data is not being accessed .No return statement given there.

Answered by itsteveantony180
0

Answer:return statement thereis no void in the method

Explanation:

Similar questions