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 are collection pools?
Which type of JDBC driver is the fastest one?
What is a merge field?
Why do we use jdbc in java?
What is database deadlock ? How can we avoid them?
How can I get information about foreign keys used in a table?
Expalin the method of calling a stored procedure from jdbc.
Explain jdbc savepoint?
Can I get a null resultset?
What is type 4 jdbc driver?
How many jdbc driver types are there?
What is serialization and deserialization in java programming?
How many ways can you update a result set?
How can we store the file in the oracle database?
What port does jdbc use?