Is Java seen as a pure object-oriented language or not?
nexsoftsys
510 views
12 slides
Aug 24, 2020
Slide 1 of 12
1
2
3
4
5
6
7
8
9
10
11
12
About This Presentation
Java is seen as a purely object-oriented programming language as it is considered impossible for developers to write any Java program without its class and object, which is why it is not a pure object-oriented programming language.
Size: 1.01 MB
Language: en
Added: Aug 24, 2020
Slides: 12 pages
Slide Content
Why we say
JAVA
is not a pure object
oriented language?
Oneofthebiggestquestionrelatedjava
isapureobjectorientedornot?
This question is simply answer no because
there are many factor in java which
aren’t objects.
Example:touseinprimitivedatatypes
likesint,float,chars,boolean,etc...
Java -Object oriented language or not?
OOPs conceptOOPs
Class
Polymorphism
Abstraction
Encapsulation
Inheritance
Interface
Object
Java OOP Support or Not
Java -Support
Java –Not Support
Java full support for abstractions and
encapsulations
Also support inheritance & Polymorphism
Usercanbeinitializemustbeobjects
XNotsupportforpredefinedtypesofobjects
XFinally, all operations performed on items must
be just through techniques uncovered at the
objects.
Java is primitive type
What is primitive type?
A primitive type is defined limitation by the language and is
names by a private keyword. It is called java is primitives
programming language.
Most of variable define in java has a primitive type, which require
says java how the variable should be managed and calculate
memory should be defined for that variables.
Example
OOPs Example Without OOP example(Java)
Class Examploops
{
public static void main(String[] args)
{
System.out.println("OOPs exmple");
}
}
public class OOPs1
{
public static void main(String OOps[])
{
private int x =10;
private int y =15;
private int z =x+y;
System.out.println("the result is="+z);
}
}
Primitive Types Structures
Primitivetype PrimitivePath type Detail
byte Java.lang.byte Return byte value(8 bit integer)
short Java.lang.short Return short value(16 bit integer)
Int Java.lang.int Return int value(32 bit integer)
Long Java.lang.long Return long value(64 bit integer)
Float Java.lang.float Return rounding value(32 bit precisionfloating)
Double Java.lang.double Return rounding value(64 bit precisionfloating)
Char Java.lang.char Return unicode character (16bit)
Boolean Java.lang.boolean Returnboolean value (true/false)
What is java hybrid?
Java is support object orientedbut
not purely because it defines
primitives data types that’s reason
told hybrid language. Also, C++
also knows as a hybrid language.
When Smalltalk is fully object
oriented languages. It also multiple
inheritance defines into a
programs
hybrid
Single / Multi-level inheritance
Teacher
Student
Principal
Teacher Student
Principal
Single Inheritance
Multiple Inheritance
Java support only single inheritance
Object Oriented Model
Methods
Data
Java object boundary
SOFTSYS
Address :"Royal Square“ 1st Floor, Off No. 110,
Nr. Shilp Tower, Tagore Road,
Rajkot –360001, Gujarat -India
Mail : [email protected]
Web : www.nexsoftsys.com