Point out the error in the following program:
1.00
1. class increment {
2.public static void main(String args[])
3. {
4.int vart = 1 + 5
stion
5 int var2 = vart / 4
6.double var3 = 1 + 5
7 double var4 = var3 / 4
8 System.out.print(var2 + "' + var4);
10)
Select one
Line number 5
No Error
Answers
Answered by
0
Answer:
The error in program is that you should use semicolon (;) after declaring variable and execution from line 4 to 7
Similar questions