Career Guide · Java Programming
Java Programming Glossary: Key Words Explained Simply
Quick summary — the Java words you need to know
Java has a lot of terms. But you don't need all of them to start. Here are the most important ones — explained in plain English. Master these, and you'll be able to read documentation, watch tutorials, and answer most interview questions.
In this guide you will learn:
- Core Terms (3) — the absolute basics.
- OOP Terms (3) — the heart of Java.
- Advanced Terms (3) — for modern Java.
- Fix Checklist — how to remember them.
SECTION 01Core Terms (3)
These are the foundational Java terms:
| Term | What It Means | Example |
|---|---|---|
| Class | A blueprint for creating objects. | "class Car { ... }" |
| Object | An instance of a class. | "Car myCar = new Car();" |
| Method | A function inside a class. | "void start() { ... }" |
| Variable | A named space for storing data. | "int speed = 100;" |
CLASS + OBJECT:
public class Car {
String color; // variable
int speed; // variable
void start() { // method
System.out.println("Car started");
}
}
// Object = instance of the class
Car myCar = new Car();
myCar.start();
METHOD + VARIABLE:
public class Calculator {
int result; // variable
int add(int a, int b) { // method
return a + b;
}
}
Calculator calc = new Calculator();
int sum = calc.add(5, 3); // 8
SECTION 02OOP Terms (3)
OOP = Object-Oriented Programming. These are the heart of Java:
| Term | What It Means | Example |
|---|---|---|
| Encapsulation | Hiding data and exposing only methods. | "private int balance; public int getBalance()" |
| Inheritance | One class inherits from another. | "class Dog extends Animal" |
| Polymorphism | One method name, many behaviors. | "animal.speak() — Dog barks, Cat meows" |
| Abstraction | Show only essentials, hide complexity. | "interface Payment { void pay(); }" |
ENCAPSULATION:
public class Account {
private double balance; // hidden
public double getBalance() {
return balance;
}
public void deposit(double amount) {
if (amount > 0) balance += amount;
}
}
// balance is hidden — only accessible via methods
INHERITANCE:
class Animal {
void eat() { System.out.println("Eating"); }
}
class Dog extends Animal {
void bark() { System.out.println("Barking"); }
}
Dog d = new Dog();
d.eat(); // inherited
d.bark(); // own method
SECTION 03Advanced Terms (3)
These are the modern Java terms you'll hear in interviews:
| Term | What It Means | Example |
|---|---|---|
| Thread | A unit of execution. Allows concurrency. | "new Thread(() -> {...}).start();" |
| Stream | A sequence of data processed functionally. | "list.stream().filter(x -> x > 5).collect()" |
| Lambda | A short, anonymous function. | "(a, b) -> a + b" |
| Generics | A way to write reusable, type-safe code. | "List |
STREAM:
List nums = List.of(1, 2, 3, 4, 5);
int sum = nums.stream()
.filter(n -> n % 2 == 0)
.mapToInt(Integer::intValue)
.sum();
System.out.println(sum); // 6
LAMBDA:
// Old way: anonymous class
Runnable r = new Runnable() {
public void run() {
System.out.println("Running");
}
};
// New way: lambda
Runnable r = () -> System.out.println("Running");
// Functional interface
Function square = x -> x * x;
System.out.println(square.apply(5)); // 25
SECTION 04Fix Checklist
Use this checklist to master Java terms:
| Area | Checklist Item | Done? |
|---|---|---|
| Core | I can explain class vs object. | ☐ |
| I understand method and variable scope. | ☐ | |
| I know what a constructor is. | ☐ | |
| OOP | I can explain inheritance with an example. | ☐ |
| I understand encapsulation and access modifiers. | ☐ | |
| I can differentiate abstract class vs interface. | ☐ | |
| Advanced | I understand streams and lambdas. | ☐ |
| I can explain generics and threads. | ☐ |
SECTION 05Interview Q&A — Java glossary lessons
Q1What's the difference between a class and an object?
A class is a blueprint. An object is an instance of that class. Example: "Car" is a class; "myCar" is an object.
Q2What is encapsulation?
Hiding internal data and exposing only methods. It protects objects from being modified directly.
Q3What's the difference between an abstract class and an interface?
An abstract class can have both abstract and concrete methods. An interface can have only abstract methods (before Java 8) and is used for contracts.
Q4What is a stream in Java?
A sequence of data processed functionally. Streams let you filter, map, and reduce data without writing loops.
Q5Why do we use generics?
Generics allow you to write type-safe, reusable code. Instead of raw types, you specify the type (e.g., List
SECTION 06Test yourself — Java glossary quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 07Frequently asked questions
What's the difference between a class and an object?
A class is a blueprint. An object is an instance of that class.
What is OOP?
OOP stands for Object-Oriented Programming. It's a paradigm based on classes and objects, with principles like encapsulation, inheritance, polymorphism, and abstraction.
What is a lambda expression?
A short, anonymous function. Introduced in Java 8, used heavily in streams and functional interfaces.
What is the JVM?
The Java Virtual Machine. It runs Java bytecode so that Java is platform-independent.
What is a stream in Java?
A functional way to process collections. Streams let you filter, map, and reduce data without writing loops.
SECTION 08Related reads
Classroom & online · Noida
Learn Java — and how to explain it
Our Java Course covers core Java, OOP, Spring Boot, and real projects — with portfolio building and placement support.
₹18,500 · full programme- Core Java + OOP + Spring Boot
- Real projects + Interview prep
- Resume + Interview + Placement Support
- Weekday & weekend batches





