Answer Posted / tarun
Abstract Class : An abstract class can not be initialized.
Any class can extends it. The methods declared in the
abstract class can be abstract or not.
Abstract Method : If any method is declared as abstract
method it should be in a abstract class. And it can be
override by any other class which is extending it. if method
is declared as abstract it should not contain body.
For Example:
public abstract class AbstractEx {
public void reset(){
System.out.println("The Sun Rises in the east");
}
public abstract void method();
protected abstract void newmethod();
}
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Can a method be static?
What is variable in java?
Say any two properties in beans?
What is the difference between a static and a non-static inner class in java programming?
What are operators and its types?
What are java annotations?
how to write a server program and sending the mails to the server using smtp protocol please help me
What are functions in java?
Variable of the boolean type is automatically initialized as?
What is difference between equal and == in java?
What types of index data structures can you have in java?
can rmi and corba based applications interact ?
What is the full meaning of java?
What is an iterator interface in java programming?
What is final method?