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 differences between resultset and rowset?
What are the factors that the jdbc driver performance depends upon?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
How to insert an image or raw data into database?
Where can I find ojdbc14 jar file?
What is a rollback in jdbc?
What is hbm xml?
What are the methods which can verify the cursor particular position?
Which is better odbc or jdbc?
Explain the process of creating tables using NetBeans IDE?
Is uri the same as url?
How do we call a stored procedure from jdbc?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
What is statement and resultset in jdbc?
Jdbc-odbc bridge is multi-threaded or not?