Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the difference between a static method and an instance method?
Answer: A static method belongs to the class and can be called without creating an instance, while an instance method operates on an instance of the class and requires an object to be created.

Example:

Static method: Math.abs() in Java. Instance method: String.length() in Java.
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook