Welcome to the Webmaster Forum.
Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Jan 2014
    Location
    Banglore
    Posts
    289

    Why is java not 100% pure OOPS language?

    Java doesn’t support 100% pure OOPS concept, since it support primitive datatype like int, long, byte etc, these are not objects.

  2. #2
    Member
    Join Date
    Dec 2017
    Location
    Santa Clara, California, USA
    Posts
    81

    Re: Why is java not 100% pure OOPS language?

    Pure Object Oriented Language or Complete Object-Oriented Language are Fully Object-Oriented Language which supports or have features which treat everything inside the program as objects. It doesn’t support primitive datatype(like int, char, float, bool, etc.).

    There are seven qualities to be satisfied for a programming language to be pure Object Oriented. They are:
    ⦁ Encapsulation/Data Hiding
    ⦁ Inheritance
    ⦁ Polymorphism
    ⦁ Abstraction
    ⦁ All predefined types are objects
    ⦁ All user-defined types are objects
    ⦁ All operations performed on objects must be only through methods exposed to the objects.

    Java supports property 1, 2, 3, 4 and 6 but fails to support property 5 and 7 given above.

  3. #3
    Senior Member
    Join Date
    Aug 2016
    Posts
    110

    Re: Why is java not 100% pure OOPS language?

    Java is not a pure OOP language due to two reasons-

    The primitive data types. These include int,char,etc. These can be used without the use of any object. (Eg. int a=5; System.out.print(a)
    The static keyword.When we declare a class as 'static' then it can be referenced without the use of an object.

  4. #4
    Senior Member
    Join Date
    Apr 2016
    Posts
    198

    Re: Why is java not 100% pure OOPS language?

    Java is not a pure OOP language due to two reasons-

    The primitive data types. These include int,char,etc. These can be used without the use

    of any object. (Eg. int a=5; System.out.print(a)
    The static keyword.When we declare a class as 'static' then it can be referenced

    without the use of an object.

  5. #5
    Senior Member
    Join Date
    Mar 2018
    Location
    Ajmer
    Posts
    222

    Re: Why is java not 100% pure OOPS language?

    Thanks for sharing

  6. #6
    Senior Member
    Join Date
    Sep 2017
    Location
    Delhi
    Posts
    1,375

    Re: Why is java not 100% pure OOPS language?

    java is not a pure oops language...

  7. #7
    Senior Member
    Join Date
    Aug 2017
    Location
    South Africa
    Posts
    207

    Re: Why is java not 100% pure OOPS language?

    Java is a OOP language and it is not a pure Object Based Programming Language.
    Many languages are Object Oriented. There are seven qualities to be satisfied
    for a programming language to be pure Object Oriented. They are:Encapsulation/Data Hiding Inheritance Polymorphism Abstraction All predefined types are objects All operations are performed by sending messages to objects All user defined types are objects.Java is not because it supports Primitive datatype such as int, byte, long... etc, to be used, which are not objects. Contrast with a pure OOP language like Smalltalk, where there are no primitive types, and boolean, int and methods are all objects.
    From a Website on google

  8. #8
    Junior Member
    Join Date
    Jun 2018
    Posts
    16

    Re: Why is java not 100% pure OOPS language?

    It’s Actually a great and useful piece of info. I am satisfied that you shared this helpful information with us.

 

 

Similar Threads

  1. What is C language ?
    By raianju in forum Coding & Programming
    Replies: 97
    Last Post: 03-13-2018, 04:11 AM
  2. java
    By anusers13 in forum Coding & Programming
    Replies: 1
    Last Post: 08-29-2016, 12:05 AM
  3. Qualities for a program to be 100% OOPS language?
    By chinmay.sahoo in forum Coding & Programming
    Replies: 4
    Last Post: 04-04-2016, 05:40 AM
  4. which type language java script?
    By jems jon in forum PHP
    Replies: 6
    Last Post: 02-22-2016, 04:58 AM
  5. which type language java script?
    By jems jon in forum Coding & Programming
    Replies: 20
    Last Post: 09-11-2015, 11:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to top

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207