what is different between static and non static methods ,using
example
Answers were Sorted based on User's Feedback
Answer / siva
we should create object form calling Non static method but
no necessary to create object for calling static method
using class name we call static method
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / guest
Static:
we dont have to create instance of an object
Staic methods cannot access nonstatic methods.
same with variable static variables cannot access static
variables
Non-Static:
we have to create instance of an object
nonStaic methos canaccess nonstatic methods.
same with variable nonstatic variables can access static
variables
| Is This Answer Correct ? | 0 Yes | 1 No |
What about features of local inner class?
What are memory tables?
What is the difference between JDBC 1.0 and JDBC 2.0?
What is the difference between call by reference and call by pointer?
What is this () in java?
What is difference between iterator and enumeration in java?
does core java and j2se both are same?
What’s the difference between constructors and other methods?
What does java stand for?
What are the new features in java 8?
Write POJO class as a key to hashmap???
List some important characteristics on jre