0% found this document useful (0 votes)
46 views25 pages

1 JAVA PPT Introduction

The document outlines a Java training program, covering topics such as the differences between C, C++, and Java, programming paradigms, and the roles of JDK, JRE, and JVM. It includes a detailed agenda, prerequisites for the training, and steps for environment setup. Additionally, it explains key concepts like classes, objects, properties, and behaviors in Java programming.

Uploaded by

sarikakawle5
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)
46 views25 pages

1 JAVA PPT Introduction

The document outlines a Java training program, covering topics such as the differences between C, C++, and Java, programming paradigms, and the roles of JDK, JRE, and JVM. It includes a detailed agenda, prerequisites for the training, and steps for environment setup. Additionally, it explains key concepts like classes, objects, properties, and behaviors in Java programming.

Uploaded by

sarikakawle5
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

Java Training

• Interested in Attending live Training? Call Us IND:+91-8099770770 / US: +1-201-949-7520 or


www.besanttechnologies.com
Agenda

Introduction

Difference Between C, C++ and Java

Procedural vs Object Oriented

Top Down vs Bottom Up

Compiler vs Interpreter

JDK vs JRE vs JVM


INTRODUCTION
• HTML, CSS, Jquery,Javascript, JSP, ReactJS,
Front End
Application
AngularJS,VueJS…..

• Core Java, Spring MVC, Spring Boot, .NET, Go


Back End
Application
Lang…..

• Relational SQL ( Oracle, MySQL, PostGreSQL)


Back End
Databases
NoSQL(MongoDB, Cassandra…)

Android(Java, Kotlin), iOS(Objective-C, Swift),


Mobile
Development
Cross Platform(React-Native, Flutter)

Middleware
• WS02, Apigee, IBM IIB / API Connect
Development
Difference Between C, C++, Java
Metrics C C++ Java

Programming Procedural Object-Oriented Object-Oriented


Paradigm` Language Programming Programming
(OOP) (OOP)
Origin Based on Assembly Based on C Based on C and
Language Language C++
Developer Dennis Ritchie in Bjarne Stroustrup James Gosling in
1972 in 1979 1991
Translator Compiler Only Compiler only Interpreted
Language(Compile
r+Interpreter)
Platform Platform Platform Platform
Dependency Dependent Dependent Independent
Approach Top Down Bottom up Bottom up
Approach approach approach
File Generation .exe files .exe files .class files

Code Execution Direct Direct Executed by JVM


(Java Virtual
Machine)
Procedural vs Object Oriented
Procedural oriented programming Object oriented programming

It deals with algorithms. This will go It deals with data. Objects are key
with step by step here.
Programs are divided into functions Programs are divided into objects

It is top down approach It is bottom up approach

It needs very less memory It needs more memory

Example: C, Fortran Example:C++, Java, .NET

It do not have any access specifiers It has access specifiers like private,
public and protected.
It is less secure It is more secure
Procedural vs Object Oriented
Top Down vs Bottom Up
Key Bottom Up Top Down

Focus In Bottom-Up Model, the focus is on In Top-down Model, the focus is on


identifying and resolving smallest breaking the bigger problem into
problems and then integrating them smaller one and then repeat the
together to solve the bigger problem. process with each problem.

Language Bottom-Up Model is mainly used by Top-Down Model is followed by


object oriented programming languages structural programming languages
like Java, C++ etc. like C, Fortran etc.

Redundancy Bottom-Up model is better suited as it Top-down model has high ratio of
ensures minimum data redundancy and redundancy as the size of project
focus is on re-usability. increases.

Interaction Bottom-Up model have high Top-down model has tight coupling
interactivity between various modules. issues and low interactivity
between various modules.

Approach Bottom-up model is based on Top-down model is based on


composition approach. decomposition approach.
Compiler vs Interpreter
Examples Of Compilers
C

• Portable C, GCC C, Microsoft C++

C++

• Visual C++, Turbo C++

Java

• Javac, Javac Open JDK

Python

• PSyco, Cython, PyPy


JDK vs JRE vs JVM
Pre-requisites

JDK 11 and above – Writing Java code, compile, debug and


run

Eclipse IDE – Text Editor – Java template predefined


we can able to create
IntelliJ
NetBeans
BlueJ
Android Studio
XCode
Steps for Environment Setup
JDK Steps:
1. JDK is there or not --- Windows Machine -à Command
Prompt -à java --version
Java is not recognized
Mac Machineà Terminal à java –version
Java version details
2. Open JDK 11 or above to be download from below location:
https://jdk.java.net/archive/
JDK 11.0.2
First Approach JDK windows Exe file ---> Directly installed
Second Approach – JDK11.0.2
3. Copy the path of JDK Folderà Windows Machine à Edit the
System Environment variables à Advanced à Environment
Variables -à System Variables -à New à Variable name and
value
Variable Name: JAVA_HOME
Value:C://programfiles/java/jdk11/
System Variables à Path àEdit-à PopupWindow -à New-à
C://programfiles/java/jdk11/bin
%JAVA_HOME%\bin
4. Command prompt à java --version
Class vs Objects - Home
Objects

Class:
Ex: Home Before Object1: Home1
building
Blueprint
Template
Prototype
Instance
of Class
Object2: Home2
Class vs Objects - Car
Objects

Object1: Maruti Dzire


Class:
Ex: Car
Blueprint
Template
Prototype Instance
of Class
Object2: Honda
Class vs Objects - Student
Objects

Object1: Ravi
Class:
Ex: Student
Blueprint
Template
Prototype Instance
of Class
Object2: Ragul
Properties and Behaviour - Car
Class: Car Class: Car
Properties: Behaviour:
Color start
stop
Price
forward
Noofseat backward
Noofwheels getPetrol
brandname gearChange
Properties and Behaviour - home

Class: Home
Class: Home
Properties:
Behaviour:
noOfDoors getNoOfPeoples
noOfRooms getColorOfHome
noOfWindows Cooking
Color washingCloths
noOfFurniture OpenDoor
CloseDoor
noOfFloor
Homename
SizeOfHome
Properties and Behaviour - Shopping

Class: Shopping
Class: Shopping Behaviour:
getCloth
Properties: payMoney
cloth
Properties and Behaviour - Bank

Class: Bank Class: Bank


Behaviour:
Properties: deposit
accountnumber
Class

1. Properties à Variables
or data members
2. Behaviour à Methods
How to create Class
Class ClassName {
//properties
//Behaviour

}
Class - Home
Class Home {
String homeColor = ”blue”;
public static int getNoOfPeople(peoplecount) {
// Processing
return 5;
}
}
1. Statically typed language – type of variable is
important
Ex: Java, C, C++
2. Dynamically typed language – type of variable is
not important
Ex: Javascript, php, python
Class – Properties or
Variable Declaration
Properties or Variable
Declaration:
Datatype variablename =
value;
String carcolor = “white”;
Literal – fixed value or constant
value assigned to the variable
int price = 560000;
Class – Method
Declaration

AccessModifier
static/nonstatic
returntype(void/datatype)
Methodname(arguments/inp
uts/parameters) {
// Block of Statement
}
AccessModifier
Public – Anywhere we can
access
Private – Only that class
alone access
Protected --à With in
Package(Collection of
class)
Default à With in package
Package
Package – Collection of Class
BTTraining
- Courses
- Payment
- Students
- Trainers
SuperMarket
Products
Payment
Login
Address

You might also like