![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between non-static methods and abstract methods in Java?
Following are the notable differences between non-static methods and abstract methods.
Non-static (normal) methods | Abstract methods |
These methods contain a body. | Abstract methods don’t have body these are ended with a semicolon |
You can use normal method directly. | You cannot use abstract methods directly, to use them you need to inherit them and provide body to these methods and use them. |
Example:public void display() { System.out.println("Hi"); } | Example: public void display(); |
Advertisements