Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


is java pure object oriented or not ?

Answers were Sorted based on User's Feedback



is java pure object oriented or not ?..

Answer / gh kumar

no java is not a pure object oriented programming language
because of primitive data types, multiple inheritance and
static members.

Is This Answer Correct ?    43 Yes 4 No

is java pure object oriented or not ?..

Answer / arun kumar samal

no, java is not pure object oriented language due to in java
the primitives data
types(byte,short,int,long,float,double,char,void)are not
objects.to use this type we need each corresponding Wapper
implementation.
e.g:
class A{
Integer i;
public static void main(String... s){
A a=new A();
a.i=new Integer(10);//Boxing before javaSE 5.0
a.i=10;//AutoBoxing from javaSE5.0
}

Is This Answer Correct ?    5 Yes 0 No

is java pure object oriented or not ?..

Answer / neha

java is not pure object oriented programming language ............it make use of objects but it is not necessary to make object . in pure object oriented programming means that without making the object you can not successfully make the program

Is This Answer Correct ?    7 Yes 3 No

is java pure object oriented or not ?..

Answer / sathish.pk

java is not pure object oriented .

because, we are using "Static" keyword.

for example:
-------------
public class Sample{

public static void add(){
int a=1,b=2;
System.out.println("Add Value="+(a+b));
}

public void sub(){

int a=1,b=2;
System.out.println("Sub value="+(b-a));
}

public static void main(String args[]){

Sample sam=new Sample();
sam.sub();

Sample.add();
}
}


in above example:
------------------
we are creating object for access add() method, but

we are not creating object for access sub() method. because,
it is static method. so, here we are accessing sub() method
without creating object. that all...

so, java is not pure object oriented ..

Is This Answer Correct ?    2 Yes 3 No

is java pure object oriented or not ?..

Answer / sathish.pk

java is not pure object oriented .

because, we are using "Static" keyword.

for example:
-------------
public class Sample{

public static void add(){
int a=1,b=2;
System.out.println("Add Value="+(a+b));
}

public void sub(){

int a=1,b=2;
System.out.println("Sub value="+(b-a));
}

public static void main(String args[]){

Sample sam=new Sample();
sam.sub();

Sample.add();
}
}


in above example:
------------------
we are creating object for access add() method, but

we are not creating object for access sub() method. because,
it is static method. so, here we are accessing add() method
without creating object. that all...

so, java is not pure object oriented ..

Is This Answer Correct ?    0 Yes 2 No

is java pure object oriented or not ?..

Answer / sathish.pk

My answer 6 is correct, please ignore answer 5 as something
missed.

by sathish.pk

Is This Answer Correct ?    0 Yes 2 No

is java pure object oriented or not ?..

Answer / guest

object oriented programming language

Is This Answer Correct ?    4 Yes 21 No

Post New Answer

More JDBC Interview Questions

What type of drivers have you used?

1 Answers  


Describe the steps needed to execute a sql query using jdbc.

0 Answers  


What is jdbc url for mysql?

0 Answers  


Why do I have to reaccess the database for Array, Blob, and Clob data?

0 Answers  


What is 2-tier and 3-tier architecture?

1 Answers   TCS,


How do I insert/update records with some of the columns having NULL value?

0 Answers  


What is the fastest type of JDBC driver?

0 Answers  


How to make updates to updatable result sets in jdbc?

0 Answers  


What are the common tasks of JDBC?

0 Answers  


How many categories of jdbc drivers are there?

0 Answers  


What is the advantage of namedparameterjdbctemplate?

0 Answers  


What are the basic exceptions in jdbc?

0 Answers  


Categories