Page 71 - iPro_trackGPT_V5_Class8
P. 71
6. public class uni
{
public static void main(String[] args) Write output here:
{
int a = 16;
int b = 19;
int c;
a = a ++;
b = ++b;
c = a + b;
System.out.println("Value of c = " + c);
}
}
7. public class log
{ Write output here:
public static void main(String[] args)
{
int a = 54;
int b = 55;
System.out.println(!(a < b));
System.out.println(a == b);
}
}
D. Find the errors in the following Java codes:
1. public class double
{
public static void main(String[] args)
{
int a = 45;
int b = 12;
int c = a - b;
System.out.println("The value of c is: "+c);
}
}
Program Coding 69

