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
What are the advantages of using preparedstatement in java?
What is jdbc thin client in oracle?
What is use of connection pooling?
Does jdbctemplate use prepared statements?
Is jdbc an api?
What are the steps required to execute a query in jdbc?
What are the main components of JDBC ?
Explain the importance of drivermanager.
What driver should I use for scalable Oracle JDBC applications?
password, is stored in as plain text. What can I do to protect my passwords?
Explain about multiple implementations and drive manager?
How the JDBC application works?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
What is com mysql jdbc driver?
Explain the JDBC Architecture?