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
What is statement and preparedstatement in java?
What is correlated subquery?
Is jdbc connection secure?
How do I disallow NULL values in a table?
What port does jdbc use?
What is jdbc and explain jdbc architecture?
What is JDBC ResultSet?
What are the different classes through which JDBC represents statements?
Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.
What does the jdbc driver interface do?
Does jdbc require oracle client?
Explain how to make updates to the updatable resultsets.
What is JDBC API and when do we use it?
What is jdbc driver in java?
What is jdbc and odbc?