answersLogoWhite

0

we can do sorting by using two interfaces like comparator and comparable

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Can interface implement the other interface?

No. An interface cannot implement another interface, it can only just extend it. Because, an interface cannot implement any method as it has no method body declarations.


Using only one program implement bubble sorting insertion sorting quick sorting and selection sorting?

Its simple!dirve a menu based prog by using switch case & then apply every sorting function to it.


What is useful to implement quick sort?

Knowledge and experience.


What is AppletStub Interface?

The applet stub interface provides the means by which an applet and the browser communicate. Your code will not typically implement this interface


How do you implement runnable interface?

By implementing Runnable in our class and by overriding the run() method of Runnable interface


Which interface must you implement to ensure that your Servlet is single threaded?

SingleThreadModel


Why an interface can not have anything but constants and abstract methods?

The idea is that an interface is not a class, it is just a specification of what classes that implement it must contain.


What are the functions of an interface in Java?

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


Can you instantiate an interface?

According to a beginner's book on Java, an interface can't have constructors. Also, the interface itself can't contain the method implementation.


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.


What are adapter classes in java?

An adapter class is a class that provides a dummy (empty) implementation for an interface. That way someone who wants to implement the interface but does not want or does not know how to implement all methods, can use the adapter class instead, and only override the methods he is interested in.


What Java interface do you implement to provide methods that are called as an XML document is processed by a SAX parser?

ContentHandler