Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

Have an account? Sign In Now

Sign In

Continue with Facebook
Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Continue with Facebook
Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Ansfind

Ansfind Logo Ansfind Logo Ansfind Logo Ansfind Logo
Add question

Ansfind Navigation

  • About Us
  • Groups
    • Add group
Search
Add Question

Mobile menu

Close
Ask a Question
  • Home
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Tags
  • Points
  • Users
  • FAQs
  • Help
  • Contact Us
Home/ Questions/Q 8880
Answered
Dayana
Dayana
Asked: August 31, 20212021-08-31T21:37:45+05:30 2021-08-31T21:37:45+05:30In: Technology

Why Java is not 100% Object-oriented programming language?

Why Java is not purely Object-oriented programming language?

javaobject oriented programming language
  • 4
  • 44
  • 161
  • 0
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
Answer
  • Report

4 Answers

  • Voted
  • Oldest
  • Recent
  1. Best Answer
    [Deleted User]
    2021-09-01T17:46:37+05:30Added an answer on September 1, 2021 at 5:46 pm

    Fully Object-Oriented Languages that support or have features that treat everything inside a program as objects are known as Pure Object-Oriented Languages or Complete Object-Oriented Languages. It isn’t compatible with primitive data types (like int, char, float, bool, etc.).

    Here are seven qualities to be satisfied for a programming language to be pure Object Oriented They are:
    1. Abstraction
    2. Inheritance
    3. Encapsulation/Data Hiding
    4. Polymorphism
    5. All user-defined types are objects
    6. All predefined types are objects
    7. All operations performed on objects must be only through methods exposed to the objects.
    Java supports 1, 2, 3, 4, and 6th points but java doesn’t support the 5th and 7th points given above. Java language is not a Pure Object-Oriented Language as it contains these properties:
    Primitive Data Type ex. int, long, bool, float, char, etc as Objects

    In Smalltalk, primitive values such as integers, booleans and characters are also objects. Smalltalk is a “pure” object-oriented programming language unlike Java and C++ as there is no difference between values that are objects and values which are primitive types.
    Predefined types as non-objects (primitive types) in Java.

    • 9
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. SaRa Professor
    2021-09-01T17:30:21+05:30Added an answer on September 1, 2021 at 5:30 pm

    Because it supports primitive data types such as it, byte, long, and so on, Java is not totally object oriented. Because we employ data types like int, float, double, and others in JAVA that are not object oriented, which is the opposite of OOPs concept. So, JAVA isn’t completely object-oriented.

    • 8
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  3. Wish Lay
    2021-09-01T17:21:20+05:30Added an answer on September 1, 2021 at 5:21 pm

    Answer: Java is not 100% Object-oriented programming language, Because in Java there is no interfaces like OOP which many people think that is one of the key feature of OOP. Because it supports primitive data types such as it, byte, long, and so on, Java is not fully object oriented. Because we use data types like int, float, double, and others in JAVA that are not object oriented, which is the polar opposite of OOP. That’s why JAVA isn’t completely object-oriented.

    • 6
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  4. Anonymous
    2021-09-01T17:42:45+05:30Added an answer on September 1, 2021 at 5:42 pm

    Java is “Java is not an Object-oriented language” and “Java is Object-oriented language” are two different things. You may ask why?

    Why Java is not ‘object-oriented’

    “In object-oriented programming, classes are used for defining their own state. This is achieved by using interface notation.” Java is not an ‘object-oriented’ language. You may call it ‘functional’, ‘functional’ or ‘dynamic’ language. Java uses a language that was designed for ‘functional’ programming.

    Java is completely different from C, C++, OOP, OO, K-OS, and all the other ‘OO’ (Object Oriented) programming languages out there. You may consider it as ‘Dynamically typed’ language as it has quite a few dynamic features.

    • 6
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
Leave an answer

Leave an answer
Cancel reply

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

Related Questions

  • What is javaDoc? Explain the comments for classes, methods, fields and link.
  • Explain the methods available under String and String Buffer Class.
  • What is Iterator class? Give syntax and use of any two methods of Iterator class
  • Explain the following methods of string class with syntax and example : (i) substring() (ii) replace()
  • What are the different access specifiers available in Java?
  • What is the difference between a char in C/C++ and char in Java?
  • Why is java platform independent?
  • which of the following is a correct interface?
  • How do you compare strings in java?
  • Which of these is not a part of Java's collection framework?

Sidebar

Top Users

Janeclarizz Belmores

Janeclarizz Belmores

  • 3,723 Points
SaRa

SaRa

  • 3,388 Points
Professor
Wish Lay

Wish Lay

  • 2,610 Points

Adv 250x250

  • About Us
  • Home
  • Communities
  • Tags
  • Points
  • Users
  • Help
  • Contact Us
  • Referrals
  • Policies
    • Privacy policy
    • Terms of use
Revenue

© 2023 Ansfind. | Designed by Weboptify

monetization_on Earn home Home
search Search
help Add

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.