Core_Java_Interview_Questions_Sample (1)
Core_Java_Interview_Questions_Sample (1)
1. Introduction to Java
------------------------
Java is a high-level, class-based, object-oriented programming language. It is designed to have as few imp
- Platform Independent
- Object-Oriented
- Multithreaded
- High Performance
- 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
--------------
Control Statements:
3. Object-Oriented Programming
------------------------------
Principles:
- Encapsulation
- Inheritance
- Polymorphism
- Abstraction
Example:
class Car {
String model;
int year;
void display() {
-----------------------------