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
Is odbc an api?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
What is difference between jdbc and odbc?
Is there another way of dealing with the result set that could execute faster?
How do I know which jdbc driver to use?
If you are truncated using JDBC, how can you that how much data is truncated?
Explain about Join?
What are the common jdbc exceptions?
Can we return resultset in java?
Write an sql to find all records having all upper case alphanumeric characters in a field ?
What does setautocommit do?
What is the function of drivermanager class?
What is the difference between execute, executeQuery, executeUpdate?
What do you mean by database connection pooling?
What causes no suitable driver error?