What is loop in java?



What is loop in java?..

Answer / Kripakar Shukla

A loop in Java is a control structure that allows code to repeat a specific block of instructions multiple times. There are two main types of loops in Java: 'for' and 'while'. For example, using the 'for' loop to iterate over an array:'code' for(int i = 0; i < array.length; i++) {'array[i]'}n'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is file class and what is its purpose?

1 Answers  


Can we override the overloaded method?

1 Answers  


What is OOP's Terms with explanation?

1 Answers   Beahead Private Limited,


Is vector synchronized in java?

1 Answers  


What is a substitution variable?

1 Answers  


Why do I need to declare the type of a variable in java?

1 Answers  


Can a class with private constructor be extended?

1 Answers  


what are the high-level thread states? : Java thread

1 Answers  


When will we use them?

1 Answers  


How do you write a good declaration?

1 Answers  


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

1 Answers  


Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?

4 Answers   Satyam,


Categories