What will be the output of the program when you run with


What will be the output of the program (when you run with the -ea option) ?

public class Test
{
public static void main(String[] args)
{
int x = 0;
assert (x > 0) : "assertion failed"; /* Line 6 */
System.out.println("finished");
}
}

Solution Preview :

Prepared by a verified Expert
JAVA Programming: What will be the output of the program when you run with
Reference No:- TGS02398337

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)