Saltar al contenido ForoHackers

Java and the JVM: start here

Java y la JVM
#3063 · · Citar · Denunciar

Java is a statically typed, object-oriented, garbage-collected language that compiles to bytecode for the Java Virtual Machine. The JVM runs on almost any system and hosts other languages too. Java and its platform power large enterprise systems, back ends, Android's history and big-data tools, and it is valued for its libraries, tooling and long-term compatibility.

Key concepts

  • Classes and interfaces: nearly everything is a class; interfaces define contracts and enable polymorphism.
  • Bytecode and the JVM: source compiles to bytecode, which the virtual machine loads, verifies and compiles at run time.
  • Garbage collection: memory is reclaimed automatically; knowing how it behaves helps with performance.
  • Generics and collections: type-safe containers, lists, maps and streams in the standard library.
  • Exceptions: checked and unchecked errors, and try-with-resources for cleanup.
  • Concurrency: threads, executors, locks and concurrent collections.

Vocabulary

  • JDK and JRE: the development kit with compiler and tools, and the runtime to run programs.
  • JIT: just-in-time compiler that turns hot bytecode into machine code.
  • Classpath: where the JVM looks for compiled classes and libraries.
  • Build tool: Maven and Gradle manage dependencies and builds.

What to study, in order

  1. Syntax, classes, objects, inheritance and interfaces, with a command-line program.
  2. The collections framework, generics and streams.
  3. Exceptions, input and output, and writing unit tests.
  4. A build tool and dependency management; package a runnable program.
  5. Threads and the concurrency utilities; then profile memory and garbage collection.
  6. Read about the JVM's class loading and JIT to understand warm-up and performance.

Related tags

#kotlin #runtimes #backend #design-patterns

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder