|
1 | | -<!-- TOC --> |
2 | | -- [What is Object Oriented?](#what-is-object-oriented) |
| 1 | +- [What is Object Oriented](#what-is-object-oriented) |
3 | 2 | - [Why Java?](#why-java) |
4 | | -- [What is the difference between JDK & JVM?](#what-is-the-difference-between-jdk-amp-jvm) |
5 | | -- [Battle of JDKs. OpenJDK vs Oracle JDK](#battle-of-jdks) |
| 3 | +- [What is the difference between JDK & JVM?](#what-is-the-difference-between-jdk--jvm) |
| 4 | +- [Battle of JDKs. OpenJDK vs Oracle JDK](#battle-of-jdks-openjdk-vs-oracle-jdk) |
6 | 5 | - [Datatypes](#datatypes) |
7 | | - - [Details](#details) |
8 | | - - [Character constant vs String Constant](#character-constant-vs-string-constant) |
9 | | - - [Boxing & Unboxing]() |
10 | | - - [StingBuilder vs StringBuffer and immutability]() |
11 | | -- [Language features]() |
12 | | - - [Constructors]() |
13 | | - - [Can the constructor be overridden?]() |
14 | | - - [Difference between overloading and overriding?]() |
15 | | - - [Deconstructing the main](#deconstructing-the-main) |
16 | | - - [Accessing non-static member from static method]() |
17 | | - - [Difference between interface & abstract class]() |
18 | | - - [Difference between instance variables & local variables]() |
19 | | - - [Object creation]() |
20 | | - - [Static vs instance methods]() |
21 | | - - [equals]() |
22 | | - - [hashCode]() |
23 | | - - [equals + hashCode]() |
24 | | - - [final]() |
25 | | - - [Exception handling]() |
26 | | - - [System object]() |
27 | | - - [Deep copy vs Shallow copy]() |
28 | | - - [References]() |
29 | | - - [Access Modifiers]() |
30 | | -- [Serialization]() |
31 | | -- [I/O]() |
32 | | - - [Stream vs Reader]() |
33 | | - |
34 | | - |
35 | | -<!-- /TOC --> |
| 6 | + - [Details](#details) |
| 7 | + - [Character constant vs String Constant](#character-constant-vs-string-constant)](#character-constant-vs-string-constantcharacter-constant-vs-string-constant) |
| 8 | + - [Boxing & Unboxing](#boxing--unboxing) |
| 9 | + - [StingBuilder vs StringBuffer and immutability](#stingbuilder-vs-stringbuffer-and-immutability) |
| 10 | +- [Language features](#language-features) |
| 11 | + - [Constructors](#constructors) |
| 12 | + - [Can the constructor be overridden?](#can-the-constructor-be-overridden) |
| 13 | + - [Difference between overloading and overriding?](#difference-between-overloading-and-overriding) |
| 14 | + - [Deconstructing the main](#deconstructing-the-main)](#deconstructing-the-maindeconstructing-the-main) |
| 15 | + - [Accessing non-static member from static method](#accessing-non-static-member-from-static-method) |
| 16 | + - [Difference between interface & abstract class](#difference-between-interface--abstract-class) |
| 17 | + - [Difference between instance variables & local variables](#difference-between-instance-variables--local-variables) |
| 18 | + - [Object creation](#object-creation) |
| 19 | + - [Static vs instance methods](#static-vs-instance-methods) |
| 20 | + - [equals](#equals) |
| 21 | + - [hashCode](#hashcode) |
| 22 | + - [equals + hashCode](#equals--hashcode) |
| 23 | + - [final](#final) |
| 24 | + - [Exception handling](#exception-handling) |
| 25 | + - [System object](#system-object) |
| 26 | + - [Deep copy vs Shallow copy](#deep-copy-vs-shallow-copy) |
| 27 | + - [References](#references) |
| 28 | + - [Access Modifiers](#access-modifiers) |
| 29 | +- [Serialization](#serialization) |
| 30 | +- [I/O](#io) |
| 31 | + - [Stream vs Reader](#stream-vs-reader) |
36 | 32 |
|
37 | 33 | ## What is Object Oriented |
38 | 34 |
|
39 | | -This is some random content |
| 35 | +Object-oriented is a programming paradigm that relates the programming to logical objects. Like real life objects, programming objects will have their characteristics(state) & functionalities(methods). Some other features like inheritance, abstraction (), polymorphism, encapsulation (hiding the data implementation) will be applied to programming too. |
| 36 | + |
| 37 | +A car is a type of vehicle which has a brand, registration no, mileage etc and it can be driven, gears can be shifted. |
| 38 | + |
| 39 | +```java |
| 40 | +class Car extends Vehicle{ |
| 41 | + protected String brand; |
| 42 | + protected String regNo; |
| 43 | + protected Double mileage; |
| 44 | + |
| 45 | + public void drive(){ |
| 46 | + // Drive the car |
| 47 | + } |
| 48 | + |
| 49 | + public void shiftGear(int gear){ |
| 50 | + // Shift gear |
| 51 | + } |
| 52 | + |
| 53 | +} |
| 54 | +``` |
| 55 | + |
| 56 | + |
| 57 | +## Why Java? |
| 58 | + |
| 59 | + |
| 60 | +## What is the difference between JDK & JVM? |
| 61 | +## Battle of JDKs. OpenJDK vs Oracle JDK |
| 62 | +## Datatypes |
| 63 | +### Details |
| 64 | +### Character constant vs String Constant](#character-constant-vs-string-constant) |
| 65 | +### Boxing & Unboxing |
| 66 | +### StingBuilder vs StringBuffer and immutability |
| 67 | +## Language features |
| 68 | +### Constructors |
| 69 | +### Can the constructor be overridden? |
| 70 | +### Difference between overloading and overriding? |
| 71 | +### Deconstructing the main](#deconstructing-the-main) |
| 72 | +### Accessing non-static member from static method |
| 73 | +### Difference between interface & abstract class |
| 74 | +### Difference between instance variables & local variables |
| 75 | +### Object creation |
| 76 | +### Static vs instance methods |
| 77 | +### equals |
| 78 | +### hashCode |
| 79 | +### equals + hashCode |
| 80 | +### final |
| 81 | +### Exception handling |
| 82 | +### System object |
| 83 | +### Deep copy vs Shallow copy |
| 84 | +### References |
| 85 | +### Access Modifiers |
| 86 | +## Serialization |
| 87 | +## I/O |
| 88 | +### Stream vs Reader |
0 commit comments