Java Tutor - Visualize Java code execution to learn Java online

(also visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ code)

Write Java code here:

[coming soon!] Java options: pass in command-line arguments and feed user input to stdin

Create test cases

Java Examples

Basic: Variables | ControlFlow | Sqrt | ExecLimit | Strings

Methods: PassByValue | Recursion | StackOverflow

OOP: Rolex | Person | Complex | Casting

Data structures: LinkedList | StackQueue | Postfix | SymbolTable

Java features: ToString | Reflect | Exception | ExceptionFlow | TwoClasses

Misc: Forest | Knapsack | StaticInitializer | Synthetic

(All Java examples created by David Pritchard)