- Trending Categories
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 a method in Java that ends in a semicolon and has no method body?
An abstract method is the one which has no definition and declared abstract.
In short, an abstract method contains only method signature without 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
- Class declaration with a method that has a parameter in Java
- What is difference between a Java method and native method
- What is a final method in Java?
- What is a method signature in Java?
- What is the difference between a Java method and a native method?
- What is the difference between method hiding and method overriding in Java?
- What is the difference between method overloading and method hiding in Java?
- Why the main method has to be in a java class?
- What is method overloading in Java?
- What is the difference between java method and native method?
- A body performs no work. Does it imply that the body possesses no energy ?
- What is the append method in Java?
- What method is used to create a daemon thread in Java?
- What is the purpose of using a dumpStack() method in Java?
- What is the purpose of overriding a finalize() method in Java?

Advertisements