- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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 are abstract methods in Java?
An abstract method is the one which has no definition and declared abstract.
In short, an abstract method contains only method signature without a body. To use this method, you need to inherit this method by extending the class and provide the method definition.
Example
public abstract class Employee{ private String name; private String address; private int number; public abstract double computePay(); }
- Related Articles
- What is the difference between non-static methods and abstract methods in Java?
- Can we synchronize abstract methods in Java?
- What are abstract classes in Java?
- Can we define an abstract class with no abstract methods in Java?
- What happens if the subclass does not override abstract methods in java?
- What are methods in Java?
- Declare static variables and methods in an abstract class in Java
- What are defender methods or virtual methods in Java?
- What are generic methods in Java?
- What are vararg methods in Java?
- What are final, abstract, synchronized non-access modifiers in Java?
- Can the abstract methods of an interface throw an exception in java?
- What are Default Methods in Java 8?
- What are abstract classes in C#?
- What are abstract properties in C#?

Advertisements