Computer Science, asked by pppppp5h, 1 year ago

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 charlie1505
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