Show Menu
Cheatography

Java Cheat Sheet (DRAFT) by

My Java cheat sheet My Java cheat sheet My Java cheat sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

OOPS

Encaps­ulation
Bundling data ( fields ) and methods using access modifiers.
Inheri­tance
Creating new classes from existing ones.
Polymo­rphism
it enables an object to take on many forms.
Abstra­ction
Hiding complex implem­ent­ation details and exposing only the necessary parts.

Basics

JDK
- fully featured kit(in­clude compilers, libraries )
JRE
- contains JVM & core libraries to run Java app
JVM
- its the engine that executes byte code
JIT(Ju­st-­in-­time) Compiler
converts byte code into native machine code at runtime
ClassL­oader
loads classes into memory
Memory Areas in JVM:
- Heap: For dynamic memory alloca­tions ( objects )
- Stack: For Method call frames and local variables