Select Correct Answer Anita Written Following Code Kind Loop Created Int J 2 Q43779965
Select the correct answer. Anita has written the following code. What kind of loop has she created? int i, j; for (i = 2; i <= 10; i = 1+2) System.out.print(i); for (j = 1; j <= 4; j++) System.out.print(” “); System.out.print(i); System.out.println(); A. infinite loop B. while loop C. N/A; returns an error D. for loop E nested loop Select the correct answer What is the output of the given code? class Invoice private int invoiceID = 0011; string bankName “ABC Bank”> private double amount int productID = 101: String prodName = “p1”, public class Order public static void main(String args[]) Invoice I – new Invoice System.out.println(I. invoiceID): A. 0011 Св. Авс Bank c. 101 D. compiler error E.p1 18 Select the correct answer. What is the difference between a default constructor and a parameterized constructor? OA. A parameterized constructor uses constructor overloading while a default constructor does not OB. A default constructor uses constructor overloading while a parameterized constructor does not. C. A parameterized constructor uses no arguments while a default constructor uses arguments. D. A default constructor uses no arguments while a parameterized constructor uses arguments. OE. A default constructor is always used while a parameterized constructor is only used on occasion Show transcribed image text Select the correct answer. Anita has written the following code. What kind of loop has she created? int i, j; for (i = 2; i
Expert Answer
Answer to Select the correct answer. Anita has written the following code. What kind of loop has she created? int i, j; for (i = 2…
OR