Problem
Most programming languages provide loop statements that help users iteratively process code. Different loop types exist in Java.
a) What are the important points to keep in mind while using loops in a Java program?
b) List 2 types of loops and situations where they can be used.