0% found this document useful (0 votes)
3 views

Java Overview Interview

Java is a high-level, object-oriented programming language designed for platform independence and ease of use. Key features include automatic memory management, multithreading, and core OOP concepts such as encapsulation and inheritance. The document also covers Java program structure, data types, exception handling, and the roles of JVM, JRE, and JDK.

Uploaded by

hhi545343
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Java Overview Interview

Java is a high-level, object-oriented programming language designed for platform independence and ease of use. Key features include automatic memory management, multithreading, and core OOP concepts such as encapsulation and inheritance. The document also covers Java program structure, data types, exception handling, and the roles of JVM, JRE, and JDK.

Uploaded by

hhi545343
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Java Overview for Interviews

1. What is Java?

Java is a high-level, class-based, object-oriented programming language that is designed to have as few

implementation dependencies as possible. It is a general-purpose programming language intended to let

developers write once, run anywhere (WORA).

2. Key Features of Java:

- Platform Independent (via JVM)

- Object-Oriented

- Robust and Secure

- Multithreaded

- Automatic Memory Management (Garbage Collection)

3. Java Program Structure:

public class Main {

public static void main(String[] args) {

System.out.println("Hello, World!");

4. Java Data Types:

- Primitive: int, byte, short, long, float, double, char, boolean

- Non-Primitive: Strings, Arrays, Classes, Interfaces

5. OOP Concepts in Java:

- Encapsulation

- Inheritance

- Polymorphism

- Abstraction
Java Overview for Interviews

6. Exception Handling:

try {

int result = 10 / 0;

} catch (ArithmeticException e) {

System.out.println("Cannot divide by zero");

7. Common Java Keywords:

- class, interface, extends, implements, static, final, this, super, new

8. JVM, JRE, and JDK:

- JVM (Java Virtual Machine): Executes Java bytecode

- JRE (Java Runtime Environment): JVM + libraries

- JDK (Java Development Kit): JRE + development tools

You might also like