GeekInterview.com
Series: Subject: Topic:
Question: 507 of 573

Is java a fully object oriented programming or not? if not why?

Asked by: Beena | Member Since Sep-2005 | Asked on: Sep 16th, 2005

View all questions by Beena   View all answers by Beena

Showing Answers 1 - 35 of 35 Answers
vinod arya

Answered On : Sep 17th, 2005

no, Java is not, as it allows to import packages which are not part of program

as import test.*;

  
Login to rate this answer.
sunil belurgikar

Answered On : Sep 29th, 2005

No,Because it has data types like int,float,double,char etc. whose objects can't be created unless used in a wrapper class like Integer or Float

  
Login to rate this answer.
Devidas Sonawane

Answered On : Oct 21st, 2005

Java is not Fully Object Oriented langauge b'caz of it has Primitive Datatypes like float, int, char etc.

Yes  1 User has rated as useful.
  
Login to rate this answer.
Dev

Answered On : Mar 10th, 2006

Hi

vinod arya

 Exactly I did not get you by import test.*;

How its related to Object Orientation

Will you expain me briefly.

  
Login to rate this answer.
sureshraja

Answered On : Jul 7th, 2006

Bymeans of theprimitive datatype, How do you tell that Java is not 100% OOPS language. Can you give the details.

  
Login to rate this answer.
John

Answered On : Apr 3rd, 2007

As Java is not pure object oriented language coz,
static variables exists as it is not associated with any objects of the classes
it has only one copy of the value that is shared by all objects of a particular class

  
Login to rate this answer.
KanikaKG

Answered On : Aug 3rd, 2008

View all answers by KanikaKG

No. Java is not 100 % Pure OOP because of following three reasons:
1) It doesnot support Multiple inheritance.
2) It allows use of primitive data types which are not an objects.
3) It allows static methods to call without creating the instance.

This disobeys OOPs concepts
Java isnt 100% pure OOPS coz if it were then everything should be classes and objects, whereas java still has primitive data type which violates the above said statement...SmallTalk is the only 100% pure OOPS language

Yes  4 Users have rated as useful.
  
Login to rate this answer.
sambitsahu

Answered On : Jan 5th, 2010

View all answers by sambitsahu

Java is not purely Object Oriented because it uses primitives.

  
Login to rate this answer.
Pradeep Singh

Answered On : Aug 6th, 2011

yes. Java is fully object oriented programming language

According to you Java is not 100% pure object oriented programming because of the following three reasons:

1. it does not support multiple inheritance
2. it allows use of primitive data types which are not an object
3. It allows static methods to call without creating the instance

here is the explanation for the points you have mentioned reasoning why I do not agree with your explanation.

1. Java does not allow you to extend two or more classes in one class but you can use multiple inheritance by interface.

2. you can also use wrapper class. It's not a strong point to decide that the Java is not fully object oriented programming language.

3. I do not agree with the third point also you can use instance method, variables

to conclude, java is full OOP language, if you have any other reason which is specifies that Java is not 100% OOP then let me know.

  
Login to rate this answer.
navyasirisha

Answered On : Aug 7th, 2011

View all answers by navyasirisha

Java is not Purely Object Oriented Programming because of its datatypes

  
Login to rate this answer.
navyasirisha

Answered On : Aug 7th, 2011

View all answers by navyasirisha

No, Java is not purely object oriented programming because of its Datatypes

  
Login to rate this answer.
lakshmi

Answered On : Aug 10th, 2011

no,because it uses primitive datatypes like int ,char,float.....etc

  
Login to rate this answer.
sravani

Answered On : Aug 10th, 2011

java is fully object oriented. Even if java has primitive datatypes, these types are used inside a class and never outside of it. So, they are part of class. See the API specifications on the class: 'Class'.java specifies says that all the arrays and the primitive java types and the keyword void are also represented as objects of the class "class'.

  
Login to rate this answer.
ramanjaneyulu

Answered On : Sep 3rd, 2011

Yes Java is fully object oriented programing wecan't write any Java program without using class and fundamental data types are the objects of predefiened class "Class" and they are used in inside the class, in Java there is no friend function concept so above reasons Java is fully object oriented programming.

  
Login to rate this answer.
sampra

Answered On : Mar 13th, 2012

View all answers by sampra

java is not fully object oriented since we have primitive in java

  
Login to rate this answer.
Suresh

Answered On : May 15th, 2012

Pradeep, Does java supports Switch/Case trype of branching? Is this an OOPS concept?

Yes  1 User has rated as useful.
  
Login to rate this answer.
karan0

Answered On : May 16th, 2012

View all answers by karan0

java does not support multiple parenting.

  
Login to rate this answer.
neha

Answered On : Jun 14th, 2012

No java is not a fully object oriented lang becoz it doesnt allow to make all the things as a object just an example is if java will be fully object oriented then we need to write int i=10 in the form of an object so its not fully object oriented lang

  
Login to rate this answer.
Mohammed Ashraf

Answered On : Jun 28th, 2012

Java is 100% object oriented one as we are using wrapper classes(in java) which converts primitive data type into derived objects

  
Login to rate this answer.
Narendra

Answered On : Aug 1st, 2012

No,Because in Java we are useing Primitive data types. and Java does not supports multiple inheritance. inheritance is the one main concept of OOP.So we can say Java is 99.99% OOPL not 100% OOPL.

  
Login to rate this answer.
sri2vijji

Answered On : Aug 9th, 2012

View all answers by sri2vijji

No. Because there is no multiple inheritance in java. Multiple inheritance is the one of the OOP concepts. so we cant say 100%.

  
Login to rate this answer.
priyank

Answered On : Aug 10th, 2012

Yes java is fully object oriented as it follows all the three OOP principles(Encapsulation, Inheritance, Polymorphism).
& yes it also supports multiple inheritance with the help of interfaces.

  
Login to rate this answer.
prabakaran29

Answered On : Aug 19th, 2012

View all answers by prabakaran29

java is not pure object oriented language .because it is used by primitive data types
.

  
Login to rate this answer.
kirti dixit

Answered On : Aug 25th, 2012

Java is fully object oriented. Even if Java has primitive datatypes, these types are used inside a class and never outside of it. So, they are part of class. See the API specifications on the class: Class.java specifies says that all the arrays and the primitive java types and the keyword void are also represented as objects of the class "class.

  
Login to rate this answer.
KOTI

Answered On : Sep 9th, 2012

java is not pure object oriented programming language because it supports primitive data types not as objects

  
Login to rate this answer.
sathish

Answered On : Sep 18th, 2012

Java s a purely object oriented programming.. it converts the primitive data types into objects by using wrapper class..

  
Login to rate this answer.
Chellapandi

Answered On : Sep 19th, 2012

Java Is not fully object oriented because it not support the multiple inheritance

  
Login to rate this answer.
Devapangu Mangaiah

Answered On : Sep 24th, 2012

It is depending on perspecive view of the programmer. If we consider the old languages like C, C++, Java is pure objective oriented language. But when we consider Java is alone, it is not a pure object oriented language.

  
Login to rate this answer.
Prabakaran

Answered On : Oct 7th, 2012

Java is not a pure object oriented programming because it supports primitive data types.

Code
  1. public class Prabakaran
  2. {
  3. public static void main(String praba[])
  4. {
  5. private int a=23;
  6. private int b=24;
  7. private int c=a+b;
  8. System.out.println("the result is="+c);
  9. }
  10. }

  
Login to rate this answer.
prakash

Answered On : Nov 6th, 2012

I am a strong supporter that Java is a object oriented concept
because we cant develop a single program without class
and class is a basic entity of OOPS concept.

  
Login to rate this answer.
Muhammed Younus Attari

Answered On : Nov 28th, 2012

In order to support Programming language as an Object Oriented Programing Language ,following principles must be followed a)Encapsulation b)Abstraction c)Polymorphisum d)Inheritence following example says that Java Supports all the features mentioned above. class Demo extends Object { //Inheritence extends, class -->Encapsulation public static void main(String arg[]){ int x=10; System.out.print("the value of x is "); //polymorphisum sysout() for different method overloading System.out.println(x); //Abstraction } }

Code
  1. class Demo extends Object {                                        //Inheritence extends, class -->Encapsulation
  2. public static void main(String arg[]){      
  3. int x=10;
  4. System.out.print("the value of x is  ");                          //polymorphisum sysout() for different method overloading
  5. System.out.println(x);                                                //Abstraction
  6. }
  7. }

  
Login to rate this answer.
bhanu

Answered On : Dec 6th, 2012

java is complete object oriented but not pure because of PUBLIC STATIC VOID MAIN(STRING ARGS[])
here main is method. to execute a method ew need object but here we are not creating object for main method.
we are using static key word to execute main method.

  
Login to rate this answer.
sowjanya

Answered On : Dec 10th, 2012

Java is not 100% fully object oriented programing language because of primitive datatypes.. Java supports primitive data types for variables.

Code
  1. int,char,float,double....
  2.  

  
Login to rate this answer.
Praveen Kumar

Answered On : Dec 13th, 2012

Yes java is a fully object oriented programming language.., It supports almost all the major features from OO approach like inheritance, polymorphism, encapsulation, abstraction etc, But one bug about Java is seriously You have to stick to java once U start with it, I mean U cannot import functions/codes/libraries return in other programming languages.

  
Login to rate this answer.

Java is fully Oops language ..even though it is having primitive datatypes again it is having corresponding wrapper classes for each and every primitive datatype..

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.