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
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 8.402.6
jdk 9.0.4
Options
Source code
// Type your code here, or load an example. class Square { public static void main(String[] args) { Object object = new Object(); synchronized (object) { if (args[0] == null) throw new RuntimeException(); } method2(); } private static void method2() { } }
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
About the author
Statistics
Changelog
Version tree