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 sub() method
without creating object. that all...

so, java is not pure object oriented ..

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jdbc thin client?

968


What happens if connection is not closed in jdbc?

979


What are the steps to connect to a database in java?

943


Give steps to connect to the db using jdbc?

1017


What is xe in oracle jdbc url?

1085


What are the conditions applies to varchar variable, when using in procedures?

2159


Does JDBC support stored procedures?

1001


What is database deadlock ? How can we avoid them?

1056


What is encrypted connection?

1009


What is statement and resultset in jdbc?

950


What is jdbc in dbms?

1040


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

5050


What is com mysql jdbc driver?

924


What are the different types of statements? How we can you use preparedstatement.

965


What is JDBC Connection? Explain steps to get Database connection in a simple java program.

1176