Introduction to Java, Core Java and
Object-Oriented Concepts
Java is a high-level, class-based, object-oriented programming language developed by Sun
Microsystems. It is designed to have as few implementation dependencies as possible, making it
platform independent through the principle of Write Once, Run Anywhere (WORA). Java
programs are compiled into bytecode, which can run on any device equipped with a Java Virtual
Machine (JVM). Java is widely used in web applications, desktop software, Android development,
enterprise systems, and cloud-based applications.
Core Java
Core Java refers to the fundamental concepts and standard libraries of Java programming. It
includes basic syntax, data types, operators, control statements, arrays, strings, exception
handling, multithreading, collections framework, file handling, JDBC, and object-oriented
programming principles. Core Java forms the foundation for advanced technologies such as
Spring Boot, Hibernate, and full-stack development.
Object-Oriented Concepts
Java follows the four main pillars of object-oriented programming:
1. Encapsulation: Wrapping data and methods into a single unit (class).
2. Inheritance: Acquiring properties and behaviors of one class into another.
3. Polymorphism: Performing a single action in different ways (method overloading and
overriding).
4. Abstraction: Hiding internal implementation details and showing only essential features.
These concepts help in creating reusable, scalable, and maintainable software applications.
Example Program
public class Student {
String name;
void display() {
[Link]("Name: " + name);
}
public static void main(String[] args) {
Student s = new Student();
[Link] = "Muneez";
[Link]();
}
}