Can we call a non-static method from inside a static method?



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

Post New Answer

More Core Java Interview Questions

Explain about object oriented programming and its features?

1 Answers  


how come we know the object is no more used in the class?

3 Answers   Accenture,


What does the @override annotation do?

1 Answers  


What are the two ways you can synchronize a block of code?

5 Answers   Ericsson,


Explain the available thread states in a high-level?

1 Answers  


What is string data type?

1 Answers  


What is meant by data hiding/encapsulation?

1 Answers   Cyient,


What are three types of loops in java?

1 Answers  


What is meant by string is immutable?

1 Answers  


What is linked hashset and its features?

1 Answers  


Why do we use string?

1 Answers  


What type of value does sizeof return?

1 Answers  


Categories