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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using preparedstatement in java?

928


What is jdbc thin client in oracle?

857


What is use of connection pooling?

906


Does jdbctemplate use prepared statements?

869


Is jdbc an api?

1031


What are the steps required to execute a query in jdbc?

894


What are the main components of JDBC ?

1010


Explain the importance of drivermanager.

1132


What driver should I use for scalable Oracle JDBC applications?

932


password, is stored in as plain text. What can I do to protect my passwords?

903


Explain about multiple implementations and drive manager?

999


How the JDBC application works?

916


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

952


What is com mysql jdbc driver?

884


Explain the JDBC Architecture?

972