logo

Crowdly

Browser

Add to Chrome

Look at the following Java method: public void greeting(int time) {        S...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Look at the following Java method:

public void greeting(int time) {   

    String result;

    result = (time > 11) ? "Good day." : "Good morning.";

   System.out.println(result);

}

What set of test cases is correct and would achieve 100% decision coverage in the corresponding control-flow graph?

More questions like this

Want instant access to all verified answers on moodle.ut.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome