Why Java is not purely object oriented?

Answer Posted / nilesh b

As in C++ and some other object-oriented languages,
variables of Java's primitive data types are not objects.
Values of primitive types are either stored directly in
fields (for objects) or on the stack (for methods) rather
than on the heap, as commonly true for objects . This was a
conscious decision by Java's designers for performance
reasons. Because of this, Java was not considered to be a
pure object-oriented programming language.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between call by reference and call by pointer?

729


How do you write a scanner class in java?

772


Can you tell me range of byte?

755


What is downcasting?

797


What are latest features introduced with java 8?

818


Discuss about garbage collector in Java.

865


What is meant by attribute?

782


What is private static class in java?

751


Name few "optional" classes introduced with java 8 ?

873


Is a method a procedure?

773


What is the argument in java?

695


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2020


Why is string builder not thread safe?

836


How can we create objects if we make the constructor private ?

746


Does constructor return any value?

787