Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Nim
Objective-C
Objective-C++
OCaml
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
java source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
jdk 10.0.2
jdk 11.0.2
jdk 12.0.1
jdk 12.0.2
jdk 13.0.2
jdk 14.0.2
jdk 15.0.2
jdk 16.0.1
jdk 17.0.0
jdk 17.0.2
jdk 18.0.0
jdk 18.0.2
jdk 19.0.2
jdk 20.0.0
jdk 20.0.2
jdk 21.0.0
jdk 21.0.2
jdk 22.0.0
jdk 22.0.2
jdk 23.0.1
jdk 8.402.6
jdk 9.0.4
Options
Source code
class A { private int i = 10, j = 20; void x(int a) { class B { private int b; B(int b) { this.b = b; } void y() { System.out.println(a + b); } } B bb = new B(a/10); bb.y(); } void z() { x(200); } void w() { x(300); } }
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
CE on Bluesky
About the author
Statistics
Changelog
Version tree