Why java is not 100 object oriented

0 votes
why java is not 100 object oriented
Oct 17, 2023 in Java by anonymous
• 520 points
611 views

1 answer to this question.

0 votes

Java is often considered "not 100% object-oriented" due to a few reasons:

  1. Primitive Data Types: Java includes primitive data types like int, double, etc., which are not objects. They do not have methods or behaviors associated with them.

  2. Static Methods: Java allows for the creation of static methods and variables within a class. These belong to the class itself, rather than to any instance of the class. This breaks the pure object-oriented paradigm.

  3. Multiple Inheritance: Java does not support multiple inheritance for classes. This means a class cannot extend more than one class, which is a characteristic of some purely object-oriented languages.

answered Oct 17, 2023 by anonymous
• 520 points

Related Questions In Java

0 votes
1 answer

Why Java is not pure object oriented?

Java is often described as not being ...READ MORE

answered Nov 29, 2023 in Java by anonymous
• 3,360 points
523 views
0 votes
2 answers

Why it is not possible to define a static method in a Java interface?

Interfaces are concerned with polymorphism which is ...READ MORE

answered Aug 27, 2019 in Java by Sirajul
• 59,230 points
2,092 views
0 votes
1 answer

Why Object is Super Class in Java?

Object is an exception to the first rule, ...READ MORE

answered Feb 7, 2019 in Java by Dheeraj
877 views
0 votes
1 answer

Why multiple inheritance is not supported in Java?

The absence of multiple inheritance in the ...READ MORE

answered Oct 17, 2023 in Java by anonymous
• 3,360 points
654 views
+5 votes
1 answer

What are metaclasses in Python?

A metaclass instantiates and defines behavior for ...READ MORE

answered Sep 11, 2018 in Python by Priyaj
• 58,020 points
877 views
0 votes
1 answer

__init__ and self in python

The self variable represents an instance of ...READ MORE

answered Sep 18, 2018 in Python by SayantiniDeb
• 200 points
980 views
+3 votes
2 answers

What does Python _init_ and self do?

Hey @Anirudh!  Self The self keyword is used to access ...READ MORE

answered Oct 31, 2018 in Python by Omkar
• 69,220 points
6,768 views
0 votes
1 answer

Meta classes in Python

A Metaclass is the class of a ...READ MORE

answered Oct 31, 2018 in Python by SDeb
• 13,300 points
639 views
0 votes
1 answer

why java is not 100 object oriented?

Java somewhat adheres to object-oriented programming because ...READ MORE

answered Oct 13, 2023 in Java by Avinash
• 520 points
398 views
0 votes
1 answer

what is functional interface in java?

A functional interface in Java is an ...READ MORE

answered Oct 17, 2023 in Java by anonymous
• 520 points
681 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP