Tuesday, November 29, 2011

Why Java is not fully object oriented?

Java is not a fully object oriented language because it does not support multiple inheritance directly.But it does so by using theconcept of interfaces.:whatever u told may be correct but according to u c++ is purely object oriented but we can write c++ prgrm without object.in case of java we have to create object,so i think it is purely object oriented though java may not support multiple inheritance.:whatever u told may be correct but according to u c++ is purely object oriented but we can write c++ program without object.in case of java we have to create object,so i think it is purely object oriented though java may not support multiple inheritance.:whatever u told may be correct but according to u c++ is purely object oriented but we can write c++ program without object.in case of java we have to create object,so i think it is purely object oriented though java may not support multiple inheritance.:In C++,,Without class also we can write some programs but in java every single program should be written in class so java is called pure object oriented lang,,,:For an object oriented language everything shud be treated as object but in java primitive data types are present which protect it from being object oriented. Although java gives wrapper classes for all data types which shows its efforts in becoming fully object oriented:1.java is not object oriented ,bcs its also support primitive data type:according to me java is not pure object oriented language because it does not directly support multiple inheritence and it does not gives the output in the form of object.for ex if we add two no(3+5) it gives 8 which is not the part of class and not any object:A pure Object Oriented Language is that which implements all the OOP concepts.:Java supports primitive data types such as byte, short, int, long, float, double, char & boolean. For Object oriented language everything must be declared in objectS. That&
Category:Java Interview Questions

No comments:

Post a Comment