Java While Loop

Java While Loop

Java While Loop is used to execute a program code many times which is not fixed.

Syntax:

Java While Loop

Java While Loop Example

 

Output


 Infinitive Java While Loop

if you pass true as a condition in Java While Loop, it becomes an infinitive loop.

Syntax:

Example 

Output:

Next Post: Java Do-While Loop

nextprevious

About the Author: Eric K

My name is Eric.Am a software developer with skills in Php,Mysql, Java , Android,Node.js Above all, I have certification in Cisco Networking Associate (CCNA) and holds degree in Information Technology. Hire me: Email : kawi3462@gmail.com