Tagged articles
8 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 23, 2026 · Fundamentals

Master Java Loop Statements: From Basics to Practical Examples

This article explains Java's loop constructs—including while, do‑while, for, nested loops, foreach, and bubble‑sort implementations—through detailed syntax descriptions, step‑by‑step execution processes, and multiple concrete code examples with expected outputs.

Loop Statementsbubble sortdo-while
0 likes · 16 min read
Master Java Loop Statements: From Basics to Practical Examples
IT Services Circle
IT Services Circle
Jun 20, 2023 · Backend Development

Comparison of while(true) and for(;;) Infinite Loops in Java

This article examines the differences between while(true) and for(;;) infinite loops in Java, presenting equivalent code examples, compiling them to bytecode, and showing that both constructs compile to identical bytecode using a goto instruction, concluding there is no performance distinction.

bytecodeforinfinite loop
0 likes · 4 min read
Comparison of while(true) and for(;;) Infinite Loops in Java
Python Programming Learning Circle
Python Programming Learning Circle
Feb 9, 2023 · Fundamentals

Understanding Loop Structures in Python: for, while, break, continue, and Nested Loops

This article explains why loops are needed in programming, introduces Python's for‑in and while loops, demonstrates their syntax with practical examples—including range variations, break/continue statements, and nested loops such as the multiplication table—and provides exercises on prime checking and GCD/LCM calculation.

LoopsPythonfor
0 likes · 9 min read
Understanding Loop Structures in Python: for, while, break, continue, and Nested Loops
Laravel Tech Community
Laravel Tech Community
Jan 4, 2022 · Fundamentals

Differences Between while(1) and for(;;) Loops in C

The article explains the syntax and semantics of while(1) and for(;;) infinite loops in C, compares their generated assembly code, and demonstrates through compiled examples that both constructs produce essentially identical machine code despite minor semantic differences.

AssemblyLoopsc++
0 likes · 4 min read
Differences Between while(1) and for(;;) Loops in C
Programmer DD
Programmer DD
Aug 11, 2021 · Fundamentals

Why Does Java’s for(;;) Loop Exist and Is It Faster Than while(true)?

An exploration of Java’s infinite loop constructs reveals that for(;;) originates from C, offers a concise syntax without magic numbers, and, according to bytecode analysis of JDK8u, performs identically to while(true), with performance determined solely by the JVM implementation.

Loopsbytecodefor
0 likes · 4 min read
Why Does Java’s for(;;) Loop Exist and Is It Faster Than while(true)?
MaGe Linux Operations
MaGe Linux Operations
Jul 5, 2018 · Fundamentals

Master Python Loops: From Basics to Control Statements

This article explains why loop statements exist, outlines Python's for and while loops (noting the absence of do‑while), compares loop types, and details Python's loop control statements—break, continue, and pass—providing a concise foundation for writing efficient repetitive code.

LoopsPythoncontrol statements
0 likes · 3 min read
Master Python Loops: From Basics to Control Statements
ITPUB
ITPUB
Sep 12, 2017 · Operations

Master Linux Shell Flow Control: If, For, While, Case & Select with Examples

This guide explains Linux shell's flow‑control constructs—including conditional if/elif/else, loops (for, while, until), and selection statements (case, select) —by detailing their syntax, usage rules, and providing complete script examples that demonstrate each construct in action.

CaseFlow ControlIf
0 likes · 6 min read
Master Linux Shell Flow Control: If, For, While, Case & Select with Examples