0% found this document useful (0 votes)
11 views3 pages

Core_Java_Interview_Questions_Sample (1)

The document provides an overview of core Java concepts, including its key features such as platform independence and object-oriented principles. It explains the roles of JVM, JRE, and JDK, as well as Java data types and control statements. Additionally, it includes sample interview questions related to Java fundamentals, such as the difference between overloading and overriding.

Uploaded by

mayurhatwargpt
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)
11 views3 pages

Core_Java_Interview_Questions_Sample (1)

The document provides an overview of core Java concepts, including its key features such as platform independence and object-oriented principles. It explains the roles of JVM, JRE, and JDK, as well as Java data types and control statements. Additionally, it includes sample interview questions related to Java fundamentals, such as the difference between overloading and overriding.

Uploaded by

mayurhatwargpt
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/ 3

Core Java Basics + Interview Questions (Sample Preview)

1. Introduction to Java

------------------------

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

Key Features of Java:

- Platform Independent

- Object-Oriented

- Robust and Secure

- Multithreaded

- High Performance

JVM, JRE, and JDK:

- JVM (Java Virtual Machine): Executes Java bytecode.

- JRE (Java Runtime Environment): Provides libraries and JVM for running Java applications.

- JDK (Java Development Kit): Contains tools to compile and run Java code.

2. Java Basics

--------------

Java Data Types:

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

- Non-Primitive: String, Arrays, Classes

Control Statements:

- Conditional: if, if-else, switch


- Looping: for, while, do-while

3. Object-Oriented Programming

------------------------------

Principles:

- Encapsulation

- Inheritance

- Polymorphism

- Abstraction

Example:

class Car {

String model;

int year;

void display() {

System.out.println(model + " - " + year);

4. Sample Interview Questions

-----------------------------

Q1. What is JVM?

A: JVM is a part of JRE that executes Java bytecode on any machine.

Q2. Difference between Overloading and Overriding?

A: Overloading is static binding, while Overriding is dynamic binding.


(Note: Full content will contain 50 pages of topics, examples, and interview Q&A.)

You might also like