Data structures and algorithms

Recap algorithms

August 22, 2022 · 8 min · Erotourtes

Java basics

Created with Mosh Theory JVM Java code compiled to Bytecode than jvm convertes it to native code for platform Boxing When Primitive types convertes to Reference public static void method(Integer value) {} public static void main(String[] args) { method(1); //boxed int into Integer } Unboxing When Reference types convertes to Primitive public static void method(int value) {} public static void main(String[] args) { method(Integer.valueOf(1)); //unboxed Integer into int } Casting Implicit casting short a = 1; int b = a + 1; Explicit casting double a2 = 1....

August 21, 2022 · 5 min · Erotourtes