Why Java is not purely object oriented?
Answer Posted / abhi
Java is an OOP language but not a pure Object Oriented
Programming Language.
There are six qualities to make a programming language to
be pure Object Oriented. They are:
i)Encapsulation/Data Hiding
ii)Inheritance
iii)Polymorphism
iv)All predifined types are objects
v)All operations are performed by sending messages to
objects
and vi)All user defined types are objects.
Primitive data types, such as int, char, boolean are not
Objects,which are used by Java.It's why Java is not a "pure
object oriented programming language".
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is the basic of java?
Can I overload to string method
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What is the difference between an array and an array list?
Is 0 an irrational number?
why are there separate wait and sleep methods? : Java thread
If you do not want your class to be inherited by any other class. What would you do?
What are the common uses of "this" keyword in java ?
Explain about doubly linked list
What are java packages? What is the significance of packages?
What do you mean by checked exceptions?
What does this () mean in java?
What is the Scope of Static Variable?
What is a java applet? What is an interface?
Does treeset allow null in java?