15. The break statement in Java can only be used inside a while loop, not inside
ID: 3903367 • Letter: 1
Question
15. The break statement in Java can only be used inside a while loop, not inside a for a. true b. false Answer: 16. The effect of break statement in Java is to terminate a loop. ?.tre b. false Answer: 17. The purpose of continue statement in Java is to give new features to the if statement a. true b. false Answer: 18. Suppose that we are given the following segment of code and the object referenc variable p is pointing to the right object Picture p2 ?.fl.pd).scale(0.5); the above cascading invocation is evaluated from a. left to right b. right to left Answer: 9. Java methods can return only primitive data types. TweExplanation / Answer
Answer 15: False
Break statement can be used in any of the loops
Answer 16:True
Break is used to terminate the loop
Answer 17:False
Continue is used to skip the remaining statements in the current iteration and goes to the next iteration
Answre 18:Right to left
p.flip() will be called on the output returned by flip() scal() will be called
Answer 19: False
Java methods can return any type of values,objects,primitives
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.