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 does executeupdate return in java?
Explain what should be done when a SQL exception is raised?
What are the common tasks of JDBC?
What are the differences between stored procedure and functions?
How can you make the connection using jdbc?
Is jdbc a web technology?
What is the jdbc rowset?
Can I use JDBC to execute non-standard features that my DBMS provides?
How many types of jdbc drivers are available?
Explain the various types of locking system in jdbc?
What is the execute method in java?
What does the jdbc resultset interface?
What is the role of jdbc drivermanager class?
Which interface is responsible for transaction management in jdbc?
Which interface handles transaction management in jdbc?