SlideShare a Scribd company logo
 static Keyword : 
◦ The static keyword is used in java mainly for memory 
management. 
 Types Of Static Members : 
◦ Java supporting four types of static members 
1. static variables 
2. static blocks 
3. static methods 
4. main method
 Non-static Members : 
◦ Class level members which don’t have static keyword in their 
creation statement are called non-static members. 
 Types Of Non-static Members : 
◦ Java supporting four types of non-static members 
1. Non-static variables 
2. Non-static blocks 
3. Non-static methods 
4. Constructors
 Package: 
◦ It is a Java folder used to group related classes , interfaces 
and enums. 
 Class : 
◦ Class is a collection of data members and member functions 
 Interface : 
◦ Interface is a fully unimplemented class , it is used for 
defining set of object operations. 
 Abstract Class : 
◦ A class that is declared with abstract keyword, is known as 
abstract class in java
 DataType : 
◦ Data type gives information about size of the memory location 
and range of data that can be stored inside that location . 
1. Primitive types 
2. Referenced types 
 Primitive Types: 
◦ Primitive Data types is used to store single value at a time.
Size and Default value of Primitive type: 
Data Type Name Size [ byte( s ) ] Default Value 
byte 1 0 
short 2 0 
int 4 0 
long 8 0 
float 4 0.0 
double 8 0.0 
char 2 ‘u0000' 
boolean 1 false
 Types of Loop : 
◦Java has very flexible three looping mechanisms. 
1. while loop 
2. do…while 
3. for loop 
 Enhanced for Loop : 
Syntax : 
for (data_type variable: array_name){ 
--------- 
--------- 
}
 Switch-case: 
◦ A switch statement allows you to test the value of an 
expression and, depending on that value, to jump directly to 
some location within the switch statement. 
 Syntax: switch (expression) { 
case value1: 
//statement s 
break; 
------------------------ 
case value n: 
//statements 
default: 
//default statement sequence 
}
 Using String in Switch-case: 
◦ In Java SE 7 and later, you can use a String object in 
the switch statement's expression. 
 Use of instanceof keyword: 
◦ The instanceof operator allows you to determine the type of 
an object. 
Example:- if(employee instanceof Person){ 
--------------------- 
--------------------- 
}
 Class: 
oA class can be defined as a template/blue print that describes 
the behaviours/states that object of its type support. 
 Syntax to declare a class: 
class <class_name>{ 
data member; 
method; 
} 
 Object: 
◦ object is the physical reality of a class. 
 Object’s characteristics : 
1.State 
2.Behaviour 
3.Identity
 Relationship with Objects: 
◦ Java supports three types of relationship: 
1.IS-A.(Inheritance) 
2.HAS-A.(Composition) 
3.USES-A.(Aggregation) 
 OOPs Features: 
◦ We have mainly four OOPs Features: 
1.Encapsulation 
2. Inheritance 
3. Abstraction 
4. Polymorphism
 Encapsulation: 
◦ The process of creating a class by Hiding internal data from 
the outside. 
 Inheritance: 
◦ The process of creating a class to reuse exited class member 
using our class name or objects is called inheritance.
 Abstraction : 
◦ The process of defining a class by providing necessary 
details to class objects operation by hiding or removing its 
implementation details called abstraction. 
 Polymorphism: 
◦ The process of defining a class by with multiple methods 
with same name but different implementation is called 
polymorphism. 
 Types of Polymorphism: 
1. Compile-time polymorphism. 
2. Run-time polymorphism.
 Behaviors of Polymorphism: 
◦ we can developed polymorphism by using 
1. Method Overloading. 
2. Method Overriding 
 Return Type Declaration: 
◦ Use the return statement to return the value. 
◦ Declare a method's return type in its method declaration. 
◦ Declare Within the body of the method.
 Types Of Constructor: 
◦ Default constructor (no-argument constructor): 
A constructor that have no parameters 
Ex- 
◦ Parameterized constructor: 
A constructor that have parameters
 Constructor Overloading: 
◦ A class can have any number of constructors that differ in 
parameter lists. 
 Constructor Chaining: 
◦ Calling one constructor from other. 
 this Keyword: 
◦ this is a reference variable that refers to the current object. 
 super Keyword : 
◦ super is a reference variable that is used to refer immediate 
parent class object.
 Array: 
◦ Array is a collection of similar type of elements that have 
continuous memory location. 
 Array Declaration: 
◦ 1 Dimensional Declaration- 
Ex-int[] x; 
◦ 2 Dimensional Declaration- 
Ex-int[][] x;
 Array Initialization : 
◦ Syntax- 
Datatype arrayName = new datatype[size]; 
 Array Assignment : 
◦ Syntax- 
DataType[] arrayRefVar = {value0, value1, ..., value 
k}; 
 Anonymous Array: 
◦ Array without any name. 
◦ Syntax-new 
datatype[]{10,20,30};
JVM and OOPS Introduction

More Related Content

What's hot

Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packages
Sardar Alam
 
Introduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita GanesanIntroduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita Ganesan
Kavita Ganesan
 
Autoboxing And Unboxing In Java
Autoboxing And Unboxing In JavaAutoboxing And Unboxing In Java
Autoboxing And Unboxing In Java
chathuranga kasun bamunusingha
 
Wrapper class
Wrapper classWrapper class
Wrapper class
kamal kotecha
 
Java Strings
Java StringsJava Strings
Java Strings
RaBiya Chaudhry
 
String classes and its methods.20
String classes and its methods.20String classes and its methods.20
String classes and its methods.20
myrajendra
 
Chapter 9 - Characters and Strings
Chapter 9 - Characters and StringsChapter 9 - Characters and Strings
Chapter 9 - Characters and Strings
Eduardo Bergavera
 
Chapter 7 String
Chapter 7 StringChapter 7 String
Chapter 7 String
OUM SAOKOSAL
 
Wrapper class (130240116056)
Wrapper class (130240116056)Wrapper class (130240116056)
Wrapper class (130240116056)
Akshay soni
 
String handling session 5
String handling session 5String handling session 5
String handling session 5
Raja Sekhar
 
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...
Edureka!
 
Java strings
Java   stringsJava   strings
Java strings
Mohammed Sikander
 
Autoboxing and unboxing
Autoboxing and unboxingAutoboxing and unboxing
Autoboxing and unboxing
Geetha Manohar
 
L9 wrapper classes
L9 wrapper classesL9 wrapper classes
L9 wrapper classes
teach4uin
 
Java string handling
Java string handlingJava string handling
Java string handling
Salman Khan
 
Strings in Java
Strings in JavaStrings in Java
Strings in Java
Abhilash Nair
 
Wrapper classes
Wrapper classes Wrapper classes
Classes & objects new
Classes & objects newClasses & objects new
Classes & objects new
lykado0dles
 
Java Wrapper Classes and I/O Mechanisms
Java Wrapper Classes and I/O MechanismsJava Wrapper Classes and I/O Mechanisms
Java Wrapper Classes and I/O Mechanisms
Subhadra Sundar Chakraborty
 
JSpiders - Wrapper classes
JSpiders - Wrapper classesJSpiders - Wrapper classes
JSpiders - Wrapper classes
JSpiders Basavanagudi
 

What's hot (20)

Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packages
 
Introduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita GanesanIntroduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita Ganesan
 
Autoboxing And Unboxing In Java
Autoboxing And Unboxing In JavaAutoboxing And Unboxing In Java
Autoboxing And Unboxing In Java
 
Wrapper class
Wrapper classWrapper class
Wrapper class
 
Java Strings
Java StringsJava Strings
Java Strings
 
String classes and its methods.20
String classes and its methods.20String classes and its methods.20
String classes and its methods.20
 
Chapter 9 - Characters and Strings
Chapter 9 - Characters and StringsChapter 9 - Characters and Strings
Chapter 9 - Characters and Strings
 
Chapter 7 String
Chapter 7 StringChapter 7 String
Chapter 7 String
 
Wrapper class (130240116056)
Wrapper class (130240116056)Wrapper class (130240116056)
Wrapper class (130240116056)
 
String handling session 5
String handling session 5String handling session 5
String handling session 5
 
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...
Java Strings Tutorial | String Manipulation in Java | Java Tutorial For Begin...
 
Java strings
Java   stringsJava   strings
Java strings
 
Autoboxing and unboxing
Autoboxing and unboxingAutoboxing and unboxing
Autoboxing and unboxing
 
L9 wrapper classes
L9 wrapper classesL9 wrapper classes
L9 wrapper classes
 
Java string handling
Java string handlingJava string handling
Java string handling
 
Strings in Java
Strings in JavaStrings in Java
Strings in Java
 
Wrapper classes
Wrapper classes Wrapper classes
Wrapper classes
 
Classes & objects new
Classes & objects newClasses & objects new
Classes & objects new
 
Java Wrapper Classes and I/O Mechanisms
Java Wrapper Classes and I/O MechanismsJava Wrapper Classes and I/O Mechanisms
Java Wrapper Classes and I/O Mechanisms
 
JSpiders - Wrapper classes
JSpiders - Wrapper classesJSpiders - Wrapper classes
JSpiders - Wrapper classes
 

Viewers also liked

Intro To Regex In Java
Intro To Regex In JavaIntro To Regex In Java
Intro To Regex In Java
nabeelalimemon
 
java:characteristics, classpath, compliation
java:characteristics, classpath, compliationjava:characteristics, classpath, compliation
java:characteristics, classpath, compliation
Shivam Singhal
 
Polymorphism (2)
Polymorphism (2)Polymorphism (2)
This keyword in java
This keyword in javaThis keyword in java
This keyword in java
Hitesh Kumar
 
Regular Expression
Regular ExpressionRegular Expression
Regular Expression
Bharat17485
 
Java Course 3: OOP
Java Course 3: OOPJava Course 3: OOP
Java Course 3: OOP
Anton Keks
 
Java Course 1: Introduction
Java Course 1: IntroductionJava Course 1: Introduction
Java Course 1: Introduction
Anton Keks
 
Java: Objects and Object References
Java: Objects and Object ReferencesJava: Objects and Object References
Java: Objects and Object References
Tareq Hasan
 
Regular Expression
Regular ExpressionRegular Expression
Regular Expression
Minh Hoang
 
Java: Class Design Examples
Java: Class Design ExamplesJava: Class Design Examples
Java: Class Design Examples
Tareq Hasan
 
Object and Classes in Java
Object and Classes in JavaObject and Classes in Java
Object and Classes in Java
backdoor
 
Java Course 5: Enums, Generics, Assertions
Java Course 5: Enums, Generics, AssertionsJava Course 5: Enums, Generics, Assertions
Java Course 5: Enums, Generics, Assertions
Anton Keks
 
Simple Pure Java
Simple Pure JavaSimple Pure Java
Simple Pure Java
Anton Keks
 
String Handling
String HandlingString Handling
String Handling
Bharat17485
 
Java static keyword
Java static keywordJava static keyword
Java static keyword
Ahmed Shawky El-faky
 
Java features
Java featuresJava features
Java features
myrajendra
 
Java Arrays
Java ArraysJava Arrays
Java Arrays
OXUS 20
 
Java Collections
Java CollectionsJava Collections
Java Collections
parag
 
Java Collection framework
Java Collection frameworkJava Collection framework
Java Collection framework
ankitgarg_er
 
Java Collections API
Java Collections APIJava Collections API
Java Collections API
Alex Miller
 

Viewers also liked (20)

Intro To Regex In Java
Intro To Regex In JavaIntro To Regex In Java
Intro To Regex In Java
 
java:characteristics, classpath, compliation
java:characteristics, classpath, compliationjava:characteristics, classpath, compliation
java:characteristics, classpath, compliation
 
Polymorphism (2)
Polymorphism (2)Polymorphism (2)
Polymorphism (2)
 
This keyword in java
This keyword in javaThis keyword in java
This keyword in java
 
Regular Expression
Regular ExpressionRegular Expression
Regular Expression
 
Java Course 3: OOP
Java Course 3: OOPJava Course 3: OOP
Java Course 3: OOP
 
Java Course 1: Introduction
Java Course 1: IntroductionJava Course 1: Introduction
Java Course 1: Introduction
 
Java: Objects and Object References
Java: Objects and Object ReferencesJava: Objects and Object References
Java: Objects and Object References
 
Regular Expression
Regular ExpressionRegular Expression
Regular Expression
 
Java: Class Design Examples
Java: Class Design ExamplesJava: Class Design Examples
Java: Class Design Examples
 
Object and Classes in Java
Object and Classes in JavaObject and Classes in Java
Object and Classes in Java
 
Java Course 5: Enums, Generics, Assertions
Java Course 5: Enums, Generics, AssertionsJava Course 5: Enums, Generics, Assertions
Java Course 5: Enums, Generics, Assertions
 
Simple Pure Java
Simple Pure JavaSimple Pure Java
Simple Pure Java
 
String Handling
String HandlingString Handling
String Handling
 
Java static keyword
Java static keywordJava static keyword
Java static keyword
 
Java features
Java featuresJava features
Java features
 
Java Arrays
Java ArraysJava Arrays
Java Arrays
 
Java Collections
Java CollectionsJava Collections
Java Collections
 
Java Collection framework
Java Collection frameworkJava Collection framework
Java Collection framework
 
Java Collections API
Java Collections APIJava Collections API
Java Collections API
 

Similar to JVM and OOPS Introduction

Object oriented programming in java
Object oriented programming in javaObject oriented programming in java
Object oriented programming in java
Elizabeth alexander
 
Java
JavaJava
core_java.ppt
core_java.pptcore_java.ppt
core_java.ppt
YashikaDave
 
class as the basis.pptx
class as the basis.pptxclass as the basis.pptx
class as the basis.pptx
Epsiba1
 
Java unit 7
Java unit 7Java unit 7
Java unit 7
Shipra Swati
 
Learning core java
Learning core javaLearning core java
Learning core java
Abhay Bharti
 
Java As an OOP Language,Exception Handling & Applets
Java As an OOP Language,Exception Handling & AppletsJava As an OOP Language,Exception Handling & Applets
Java As an OOP Language,Exception Handling & Applets
Helen SagayaRaj
 
Android Training (Java Review)
Android Training (Java Review)Android Training (Java Review)
Android Training (Java Review)
Khaled Anaqwa
 
Statics in java | Constructors | Exceptions in Java | String in java| class 3
Statics in java | Constructors | Exceptions in Java | String in java| class 3Statics in java | Constructors | Exceptions in Java | String in java| class 3
Statics in java | Constructors | Exceptions in Java | String in java| class 3
Sagar Verma
 
Md02 - Getting Started part-2
Md02 - Getting Started part-2Md02 - Getting Started part-2
Md02 - Getting Started part-2
Rakesh Madugula
 
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Chapter 02: Classes Objects and Methods Java by Tushar B KuteChapter 02: Classes Objects and Methods Java by Tushar B Kute
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Tushar B Kute
 
Core Java Introduction | Basics
Core Java Introduction  | BasicsCore Java Introduction  | Basics
Core Java Introduction | Basics
Hùng Nguyễn Huy
 
C# classes objects
C#  classes objectsC#  classes objects
C# classes objects
Dr.Neeraj Kumar Pandey
 
PPT Lecture-1.4.pptx
PPT Lecture-1.4.pptxPPT Lecture-1.4.pptx
PPT Lecture-1.4.pptx
HimanshuPandey957216
 
Java interview questions 1
Java interview questions 1Java interview questions 1
Java interview questions 1
Sherihan Anver
 
Lecture 5.pptx
Lecture 5.pptxLecture 5.pptx
Lecture 5.pptx
AshutoshTrivedi30
 
Md03 - part3
Md03 - part3Md03 - part3
Md03 - part3
Rakesh Madugula
 
Constant a,variables and data types
Constant a,variables and data typesConstant a,variables and data types
Constant a,variables and data types
mithilesh kumar
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
Srizan Pokrel
 
5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt
5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt
5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt
AshwathGupta
 

Similar to JVM and OOPS Introduction (20)

Object oriented programming in java
Object oriented programming in javaObject oriented programming in java
Object oriented programming in java
 
Java
JavaJava
Java
 
core_java.ppt
core_java.pptcore_java.ppt
core_java.ppt
 
class as the basis.pptx
class as the basis.pptxclass as the basis.pptx
class as the basis.pptx
 
Java unit 7
Java unit 7Java unit 7
Java unit 7
 
Learning core java
Learning core javaLearning core java
Learning core java
 
Java As an OOP Language,Exception Handling & Applets
Java As an OOP Language,Exception Handling & AppletsJava As an OOP Language,Exception Handling & Applets
Java As an OOP Language,Exception Handling & Applets
 
Android Training (Java Review)
Android Training (Java Review)Android Training (Java Review)
Android Training (Java Review)
 
Statics in java | Constructors | Exceptions in Java | String in java| class 3
Statics in java | Constructors | Exceptions in Java | String in java| class 3Statics in java | Constructors | Exceptions in Java | String in java| class 3
Statics in java | Constructors | Exceptions in Java | String in java| class 3
 
Md02 - Getting Started part-2
Md02 - Getting Started part-2Md02 - Getting Started part-2
Md02 - Getting Started part-2
 
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
Chapter 02: Classes Objects and Methods Java by Tushar B KuteChapter 02: Classes Objects and Methods Java by Tushar B Kute
Chapter 02: Classes Objects and Methods Java by Tushar B Kute
 
Core Java Introduction | Basics
Core Java Introduction  | BasicsCore Java Introduction  | Basics
Core Java Introduction | Basics
 
C# classes objects
C#  classes objectsC#  classes objects
C# classes objects
 
PPT Lecture-1.4.pptx
PPT Lecture-1.4.pptxPPT Lecture-1.4.pptx
PPT Lecture-1.4.pptx
 
Java interview questions 1
Java interview questions 1Java interview questions 1
Java interview questions 1
 
Lecture 5.pptx
Lecture 5.pptxLecture 5.pptx
Lecture 5.pptx
 
Md03 - part3
Md03 - part3Md03 - part3
Md03 - part3
 
Constant a,variables and data types
Constant a,variables and data typesConstant a,variables and data types
Constant a,variables and data types
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
 
5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt
5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt
5. OBJECT ORIENTED PROGRAMMING USING JAVA - INHERITANCE.ppt
 

Recently uploaded

Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 

Recently uploaded (20)

Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 

JVM and OOPS Introduction

  • 1.
  • 2.
  • 3.  static Keyword : ◦ The static keyword is used in java mainly for memory management.  Types Of Static Members : ◦ Java supporting four types of static members 1. static variables 2. static blocks 3. static methods 4. main method
  • 4.  Non-static Members : ◦ Class level members which don’t have static keyword in their creation statement are called non-static members.  Types Of Non-static Members : ◦ Java supporting four types of non-static members 1. Non-static variables 2. Non-static blocks 3. Non-static methods 4. Constructors
  • 5.  Package: ◦ It is a Java folder used to group related classes , interfaces and enums.  Class : ◦ Class is a collection of data members and member functions  Interface : ◦ Interface is a fully unimplemented class , it is used for defining set of object operations.  Abstract Class : ◦ A class that is declared with abstract keyword, is known as abstract class in java
  • 6.  DataType : ◦ Data type gives information about size of the memory location and range of data that can be stored inside that location . 1. Primitive types 2. Referenced types  Primitive Types: ◦ Primitive Data types is used to store single value at a time.
  • 7. Size and Default value of Primitive type: Data Type Name Size [ byte( s ) ] Default Value byte 1 0 short 2 0 int 4 0 long 8 0 float 4 0.0 double 8 0.0 char 2 ‘u0000' boolean 1 false
  • 8.  Types of Loop : ◦Java has very flexible three looping mechanisms. 1. while loop 2. do…while 3. for loop  Enhanced for Loop : Syntax : for (data_type variable: array_name){ --------- --------- }
  • 9.  Switch-case: ◦ A switch statement allows you to test the value of an expression and, depending on that value, to jump directly to some location within the switch statement.  Syntax: switch (expression) { case value1: //statement s break; ------------------------ case value n: //statements default: //default statement sequence }
  • 10.  Using String in Switch-case: ◦ In Java SE 7 and later, you can use a String object in the switch statement's expression.  Use of instanceof keyword: ◦ The instanceof operator allows you to determine the type of an object. Example:- if(employee instanceof Person){ --------------------- --------------------- }
  • 11.  Class: oA class can be defined as a template/blue print that describes the behaviours/states that object of its type support.  Syntax to declare a class: class <class_name>{ data member; method; }  Object: ◦ object is the physical reality of a class.  Object’s characteristics : 1.State 2.Behaviour 3.Identity
  • 12.  Relationship with Objects: ◦ Java supports three types of relationship: 1.IS-A.(Inheritance) 2.HAS-A.(Composition) 3.USES-A.(Aggregation)  OOPs Features: ◦ We have mainly four OOPs Features: 1.Encapsulation 2. Inheritance 3. Abstraction 4. Polymorphism
  • 13.  Encapsulation: ◦ The process of creating a class by Hiding internal data from the outside.  Inheritance: ◦ The process of creating a class to reuse exited class member using our class name or objects is called inheritance.
  • 14.  Abstraction : ◦ The process of defining a class by providing necessary details to class objects operation by hiding or removing its implementation details called abstraction.  Polymorphism: ◦ The process of defining a class by with multiple methods with same name but different implementation is called polymorphism.  Types of Polymorphism: 1. Compile-time polymorphism. 2. Run-time polymorphism.
  • 15.  Behaviors of Polymorphism: ◦ we can developed polymorphism by using 1. Method Overloading. 2. Method Overriding  Return Type Declaration: ◦ Use the return statement to return the value. ◦ Declare a method's return type in its method declaration. ◦ Declare Within the body of the method.
  • 16.
  • 17.  Types Of Constructor: ◦ Default constructor (no-argument constructor): A constructor that have no parameters Ex- ◦ Parameterized constructor: A constructor that have parameters
  • 18.  Constructor Overloading: ◦ A class can have any number of constructors that differ in parameter lists.  Constructor Chaining: ◦ Calling one constructor from other.  this Keyword: ◦ this is a reference variable that refers to the current object.  super Keyword : ◦ super is a reference variable that is used to refer immediate parent class object.
  • 19.
  • 20.  Array: ◦ Array is a collection of similar type of elements that have continuous memory location.  Array Declaration: ◦ 1 Dimensional Declaration- Ex-int[] x; ◦ 2 Dimensional Declaration- Ex-int[][] x;
  • 21.  Array Initialization : ◦ Syntax- Datatype arrayName = new datatype[size];  Array Assignment : ◦ Syntax- DataType[] arrayRefVar = {value0, value1, ..., value k};  Anonymous Array: ◦ Array without any name. ◦ Syntax-new datatype[]{10,20,30};