answersLogoWhite

0

Abstract keyword used for method declaration declares the methods without implementations.

Abstract class in java have abstract methods that is not implemented in abstract class, but implemented in subclasses in java program. If the class in java program is not required to get instantiated than that class use the abstract keyword but this class rather is available for other classes to extend by other classes.

Abstract keyword will be used in method declaration to declare that method without providing the implementation in that java program. In other words we can say that, it formally unfinished class as well as method, that marked with the help of keyword abstract.

Defining abstract is a way of preventing someone from instantiating a class that is supposed to be extended first. In java program abstract class is deliberately missing similar to like an interface which will missing all method bodies in the program. Abstract class provides a way to extend an actual class. We will not use new on abstract classes but will use abstract references in the java program, that always point to objects of the class that extends an abstract class.

In java program for practical use of an abstract class, we will define a non-abstract class that extends an abstract one. This will use any of the inherited non-abstract methods.

Most of the time abstract class may extend another abstract class. In that condition it need not implement all in the non-abstract methods. An abstract keyword used both on classes and methods. In case of class declared with an abstract keyword may not be instantiated that is the only thing that abstract keyword doing.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is abstraction method in java?

Abstraction in Java or Object oriented programming is a way to segregate implementation from interface and one of the five fundamentals along with Encapsulation, Inheritance, Polymorphism, Class and Object. Abstraction in Java is achieved by using interface and abstract class in Java.


What is Procedural Abstraction?

java supports procedural abstraction by means of constructors and methods. in java constructor and methods are always components of particular class. java supports coping parameter only. procedural abstraction is a principle in which the particular language supports some features through which procedures are modelled in the class hiding other details.


Why java is called truly object oriented language?

because java supports three main pillars.....(inheritance encapsulation and abstraction)..... and everything in java is OBJECT......


What are the functions of an interface in Java?

To create an abstraction or a blueprint for a class to implement later.


Is purpose an abstraction?

yes it is not tangible and is represented by a concept.


What is the purpose of NoMatchException handling method in java?

java exception


What is the purpose of vector?

The purpose of vector Java is to make more Java possibilities for mobile and uniformed devices. The makers of Java said that they wanted to "revolutionize" the way that Java works and helps around the globe.


What are basic java features?

features are: 1. Inheritance 2. Polymorphism 3. Data Encapsulation 4. Data Abstraction etc..


Define socket in java?

The Socket class in Java is an endpoint in a standard TCP connection. The Socket class implements methods which take care of all the overhead required with TCP communication.


What is the purpose of Java Mobile?

Java is the leading mobile phone developers and carriers. The purpose of Java's Mobile Media API is to play record sounds and videos and to also capture still images.


What is java's purpose on my PC?

Programs that are specifically designed with Java require a Java runtime to work on a computer. (In the case of Java, the runtime is called "Java Virtual Machine".) If you have any such program, you need to have Java.


What is the purpose of claiming exceptions?

it informs compiler about its possible exceptions. For example,The purpose of Java exception is to tell the Java runtime system what can go wrong

Trending Questions
Does a mechanical engineer need to know programming in terms of writing your own code? The set of all values that a function will return as outputs is called the of the function? Is a 74ls48 hex schmitt trigger the same or similar enough to substitute for CD40106BCN hex schmitt trigger? What is a Megger 1552 used for? How do you remove toilet seat with rusted bolts? When electricity is transported long distances via large overhead transmission lines the voltage can be transformed up to volts. A. 250000 B. 500000 C. 10000 D. 100000? Difference between rotating anode x ray tube and stationary x ray tube? What is effect of underground storage leakage? Where does a blastocyst embed? What would make your two-inch drain pipe overflow when your washing machine drains? Can use ASTM A193 B7 round bar instead of S355 for anchor bolt? What are the classification of amplifiers according to transistor configuration? Dial-up ISDN does not convert a computer's digital signals to analog before transmitting them over the PSTN? Why not use the ampression symbol in scanf statement in function? What is the plural of hydrant? What is difference between interface and abstract class? Which license prevails if code stating all rights reserved is put into a public GPL repository by the author or his later employer? Can galvinized pipe be used for residential natural gas? What is the Amperes difference between a 2 light bulb series circuit and 2 light bulb parallel circuit? Which table in BS 767112008 applies to the current carrying capacity of flat twin and earth cable?