-
Notifications
You must be signed in to change notification settings - Fork 12
Session1 Notes
Java - A concurrent class based statically typed language concurrent class based statically typed platform independent
Amazon On Fri : Mobile Phone 10575.55 17.5k 532.88 On Sat : Mobile Phone 10575.55 21.75k
- Time
- Accuracy
Why Software (Program) Hence, need of PL
Orange -> Source
Juicer
Liquid Juice
Pack It
_/ Glass -> End Result
MyApp.cpp -> Source Code | High Level Language
Compiler -> Pre Built Software for us
MyApp.obj -> Object Code | Low Level Code
Pack It
W MyApp.exe -> Executable Code M MyApp.dmg L MyApp.sh
MyApp.java -> Source Code | High Level Language
Compiler
MyApp.class -> Bytecode
Thats it
MyApp.py
Thats It
JVM Java Virtual Machine | Pre-Installed To execute .class files i.e. Java Bytecode -> Machine Codes
JDK Java Development Kit is a TOOL KIT | Library | Compiler | Interpreter
JRE Java Runtime Environment Gets Installed with JDK
Step # 1 : Install JDK Step # 2 : Install Eclipse / IntelliJ / Netbeans
Java JSE | Java Standard Edition Desktop Apps JEE | Java Enterprise Edition Web Apps JME | Java Mobile Edition Feature Phones
MODEL VIEW CONTROLLER
MODEL -> Data (Required to solve a Problem) VIEW -> UI i.e. User Interface (Required to take data as input from user and show some data to user) CONTROLLER -> Computation + Conditional Flow + Iterations -> LOGIC to Solve Problem
Uber
Use Case : Book a Ride on Uber (PROBLEM)
MODEL sourceLocation destinationLocation typeOfCab typeOfPayment bookForWhome favLocations
View Uber GUI
CONTROLLER Shortest Distance Least Traffic TimeToSource TimeToDest Calculation of Fare
MVC : MODEL VIEW CONTROLLER
Model > Model means Data > Data Must be Stored in the Memory > We need containers to Store Data in memory 1. Single Value Container 2. Multi Value Container 2.1 Homogeneous 2.2 Hetrogeneous
Static Storage Containers : Size is Fixed (Primitives)-> Single Value
Dynamic Storage Container : Size can be adjusted dynamically
Storage containers are variables in basic terminology
Lets Consider a use case
Amazon Pay CashBack
Amount 1000
Cashback flat 10% i.e. 100
CONTROLLER (LOGIC to Solve Problem)
1. Computation -> Operators
2. Conditional Flow
3. Iterations