1. Interface. Interface is a blueprint for your class that can be used to implement a class ( abstract or not); the point is interface cannot have any concrete methods. Concrete methods are those methods which have some code inside them; in one word – implemented .
Read moreWhat is the difference between an abstract and concrete class?
An abstract class is a class declared with an abstract keyword which is a collection of abstract and non-abstract methods while a concrete class is a class that allows creating an instance or an object using the new keyword. Thus, this is the main difference between abstract class and concrete class.
Read moreWhat is abstract and concrete method?
Abstract classes may contain abstract methods, but concrete classes can’t . Abstract classes usually have partial or no implementation. On the other hand, concrete classes always have full implementation of its behavior. Unlike concrete classes, abstract classes cannot be instantiated.14 Tem 2014
Read moreDo you know some methods in object class?
int hashCode() – Used to get a hash code value for the object. void notify() – Used to wake up a single thread that is waiting on this object’s monitor. void notifyAll() – Used to wake up all threads that are waiting on this object’s monitor. String toString() – Used to get a string representation of the object.6 Şub 2018
Read moreWhat are the methods of an object?
a method is an action which an object is able to perform . sending a message to an object means asking the object to execute or invoke one of its methods.
Read moreHow many methods are available in object class?
There are 11 methods in Object class .
Read moreWhich are the methods of object class?
Methods of Object class MethodDescriptionpublic int hashCode()returns the hashcode number for this object.public boolean equals(Object obj)compares the given object to this object.protected Object clone() throws CloneNotSupportedExceptioncreates and returns the exact copy (clone) of this object.Java Object Class – Javatpoint www.javatpoint.com › object-class
Read more