O

Java SE 8 Programmer II

196 Questions

You can start the exam to practice all questions related to this exam.

Question No. 1

Given:
public class Counter {
public static void main (String[ ] args) {
int a = 10;
int b = -1;
assert (b >=1) : “Invalid Denominator”;
int = a / b;
System.out.println (c);
}
}
What is the result of running the code with the –ea option?

Choose the correct option from the given list.
01 / 196

0 Discussions

Trending Exams