Examlex
What can be done to improve the following code fragment?
If ((counter % 10) == 0)
{
System.out.println("Counter is divisible by ten: " + counter) ;
Counter++;
}
Else
{
System.out.println("Counter is not divisible by ten: "
+ counter) ;
Counter++;
}
Q12: Which one of the following statements is
Q25: Which of the following statements is correct?<br>A)
Q28: Which of the following statements about objects
Q28: Which of the following conditions tests whether
Q38: What is displayed after executing the given
Q45: Which one of the following is a
Q54: Which import statement allows for the use
Q66: Consider the hierarchy of classes shown below.
Q76: Assuming that the user provides 49 as
Q106: Assuming that a user enters 5 as