answersLogoWhite

0

The extends keyword is used to extend/inherit the features of another class whereas the implements keyword is used when a class is implementing the features of an interface.

Both these keywords are used during Inheritance

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you implement inheritance in java?

Inheritance can be implemented in Java using the two keywords "extends" and "implements" Extends keyword is used when one class is expected to inherit the full functional behavior of another class. Implements keyword is used when one class is expected to take the skeleton features of an Interface and implement the functionality in the current class.


Write EBNF descriptions for A java class definition header statement?

® {} class [extends class_name] [implements {, }] ® public | abstract | final ® {} class [extends class_name] [implements {, }] ® public | abstract | final


What difference LinkedList and ArrayList?

public class ArrayList public class LinkedList extends AbstractList extends AbstractSequentialList implements List, RandomAccess, Cloneable, Serializableimplements List, Cloneable, Serializable Resizable-array implementation of the List interface.Linked list implementation of the List interface Implements all optional list operations, and permits all elements, including null. Implements all optional list operations, and permits all elements (including null).


Does the class can extend the class and implement interface at a time?

Yes, classes can implement more than one interface.To declare a class that implements an interface, you include an implements clause in the class declaration.Your class can implement more than one interface, so the implements keyword is followed by a comma-separated list of the interfaces implemented by the class.By convention, the implements clause follows the extends clause, if there is one.


Which words are reserved as keywords in java?

The list of reserved keywords in Java are: abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while


Generic Servlet and HTTP Servlet?

javax.servlet.GenericServletSignature: public abstract class GenericServlet extends java.lang.Object implements Servlet, ServletConfig, java.io.SerializableGenericServlet defines a generic, protocol-independent servlet.GenericServlet gives a blueprint and makes writing servlet easier.GenericServlet provides simple versions of the lifecycle methods init and destroy and of the methods in the ServletConfig interface.GenericServlet implements the log method, declared in the ServletContext interface.To write a generic servlet, it is sufficient to override the abstract service method.javax.servlet.http.HttpServletSignature: public abstract class HttpServlet extends GenericServlet implements java.io.SerializableHttpServlet defines a HTTP protocol specific servlet.HttpServlet gives a blueprint for Http servlet and makes writing them easier.HttpServlet extends the GenericServlet and hence inherits the properties GenericServlet.


What are the keywords in Java?

Here's a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywords const and goto are reserved, even though they are not currently used. true, false, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs. abstract assert*** boolean break byte case catch char class const* continue default do double else enum**** extends final finally float for goto* if implements import instanceof int interface long native new package private protected public return short static strictfp** super switch synchronized this throw throws transient try void volatile while * not used ** added in 1.2 *** added in 1.4 **** added in 5.0


What do PTO abbreviation stand for?

Power Take Off - the power extension mechanism on a farm tractor or similar vehicle that extends mechanical power from the engine out to different implements attached to the tractor. OR Parent-Teacher Organization


What is intentional activity?

Activity that extends between nations. Trade between the U.S. and Mexico is international activity.


The Financial year of RBI extends between?

1-july to 30-june


What is the name of the mountain that extends along the border between France and Spain?

The Pyrenees


What is a horizontal truss that extends between two separate scaffolds called?

plank