adspace
Can we call a non-static method from inside a static method?
Answer Posted / 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 View All Answers
Write a program to find the whether a number is an Armstrong number or not?
What are the differences between heap and stack memory in java?
What is parsing in java?
What do you mean by an interface in java?
How to sort array in descending order in java?
What is a classloader in java?
Write a program to print count of empty strings in java 8?
Differentiate between static and non-static methods in java.
Explain public static void main(string args[]) in java.
Is minecraft 1.15 out?
explain different ways of using thread? : Java thread
What is the difference between equals() and == in java?
How to create a base64 decoder in java8?
What is an object in java and how is it created?
What is the difference between break and continue statements?