why java is not a purely object oriented language?

12
Why we say java is not a Purely Object-Oriented Language

Upload: nexsoftsys

Post on 15-Apr-2017

1.198 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Why Java is not a purely object oriented language?

Why we say java is not a Purely Object-Oriented Language

Page 2: Why Java is not a purely object oriented language?

One of the biggest question related java is a pure object oriented or not?

This question is simply answer no because there are many factor in java which aren’t objects.Example: to use in primitive data types likes int, float, chars, boolean, etc...

Java - Object oriented language or not?

Page 3: Why Java is not a purely object oriented language?

OOPs concept

OOP

Class

Data abstraction

Encapsulation

Information Hiding

Inheritance

Polymorphism

Page 4: Why Java is not a purely object oriented language?

Java OOP Support or Not

Java - Support

Java – Not Support

Java full support for abstractions and encapsulations Also support inheritance & Polymorphism User can be initialize must be objects

X Not support for predefined types of objectsX Finally, all operations performed on items must be just

through techniques uncovered at the objects.

Page 5: Why Java is not a purely object oriented language?

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.

Page 6: Why Java is not a purely object oriented language?

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);}

}

Page 7: Why Java is not a purely object oriented language?

Primitive Types Structures

Primitive type Primitive Path 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 precision

floating)Double Java.lang.double Return rounding value(64 bit precision

floating)Char Java.lang.char Return unicode character (16 bit)

Boolean Java.lang.boolean Return boolean value (true/false)

Page 8: Why Java is not a purely object oriented language?

What is java hybrid?

Java is support object oriented but 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 Java hybrid

Page 9: Why Java is not a purely object oriented language?

Single / Multi-level inheritance

Teacher

Student

Principal

Teacher Student

Principal

Single Inheritance Multiple Inheritance

Java support only single inheritance

Page 11: Why Java is not a purely object oriented language?

Contact US

Development Centre

“Titanium Square” 3rd Floor,Office No. B-302, S.G. Highway,Beside Parsoli Motors. Nr. Thaltej Crossing, Ahmedabad – 380 054 Gujarat – India [email protected]

Corporate Office

"Royal Square"1st Floor, Off No. 110,Nr. Shilp Tower, Tagore Road,Rajkot - 360 001Gujarat - [email protected]

Global Operation

USANorth AmericaItalyGermanyUnited KingdomSingaporeAustraliaIrelandFinlandFacebook

Twitter

LinkedIn

BlogPinterest

Page 12: Why Java is not a purely object oriented language?

Q A