Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
#java_1
#java_1
Anonymous Quiz
65%
do-while
16%
while
11%
for
8%
none of the mentioned
What is true about private constructor?
#java_2
#java_2
Anonymous Quiz
26%
Private constructor allows creating objects in other classes
17%
Private constructor eases the instantiation of a class
19%
Private constructor ensures multiple instances of a class exist at any point of time
38%
Private constructor ensures only one instance of a class exist at any point of time
👍1
👍1