Can we call a non-static method from inside a static method?
Answer / Abhinay Shekhar
No, non-static methods (instance methods) can only be called on an instance of the class. Static methods can only access and manipulate static variables and call other static methods within the same class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain about object oriented programming and its features?
how come we know the object is no more used in the class?
What does the @override annotation do?
What are the two ways you can synchronize a block of code?
Explain the available thread states in a high-level?
What is string data type?
What is meant by data hiding/encapsulation?
What are three types of loops in java?
What is meant by string is immutable?
What is linked hashset and its features?
Why do we use string?
What type of value does sizeof return?