Java Reference

A robust, object-oriented, and platform-independent language used across enterprise systems. Essential syntax and code samples for professional development.

Main Class

public class App { public static void main(String[] args) {} }

Types

int val = 100; String str = "Java";

Collections

List<String> list = new ArrayList<>();

Streams

items.stream().filter(x -> x > 0).collect(Collectors.toList());

Conditionals

if (x != null) { System.out.println(x); }

Exceptions

try { // logic } catch (Exception e) {}