a) Find error in the following program segment
class x
void f1()
int a=5;
System .out. println("a="+a);
void f20)
int b=a;
System.out.println("b="+b);
Answers
Answered by
0
Answer:
Error Will occured in this statement void f20)
It should be write as void f2()
Otherwise program is correct and print the output
a-5
b-5
Similar questions
Math,
6 months ago
Social Sciences,
6 months ago
Math,
6 months ago
Science,
1 year ago
Environmental Sciences,
1 year ago
Math,
1 year ago