Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Java abstract class
1 Answer(s)      4 years and 3 months ago
Posted in : Java Interview Questions


Can an abstract class be final?

Advertisement
View Answers

October 26, 2010 at 6:17 PM


Hi,

Here is the answer.

No, a class cannot be marked "abstract" as well as "final". Marking a class "abstract" means it contains partial implementation of methods and hence depends on its subclasses to provide concrete implementation.

Marking the class "final" means that no other class can extend it and hence abstract classes cannot be marked final.

Thanks.



Related Tutorials/Questions & Answers:
Java abstract class
Java abstract class  Can an abstract class be final
abstract class - Java Beginners
abstract class  what exactly is abstract class and in which cases its..., In java programming language, abstract classes are those that works only... inherited from the abstract class (base class). Abstract classes
Advertisements
Abstract class and interface in Java
Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between an interface and an abstract class: At the same time multiple interfaces can
Abstract class - Java Beginners
Abstract class  Why can use abstract class in java.?when abstract class use in java.plz Explain with program.   abstract class abs{ public void display(){ } public abstract void display1(); } public class win
Java Abstract Class Example
Java Abstract Class Example In this section we will read about the Abstract class. Abstract class in Java is a class which is created for abstracting the behaviour of classes from the outside environment. Abstract class can be created
Abstract Class in Java
Abstract class in Java is a class that is declared using abstract keyword. It cannot be instantiated but can be extended into subclass. Abstract class cannot be instantiated means that new instances of an abstract class cannot
abstract class - Java Interview Questions
abstract class  Explain the abstract class and abstract method...://www.roseindia.net/java/master-java/abstract-class.shtml http://www.roseindia.net/help/java/a/java-abstract-class.shtml Hope that it will be helpful for you. Thanks
Java-Abstract Class - Java Beginners
Java-Abstract Class  Can a abstract class have a constructor ?When would the constructor in the abstract class be called ? Please give me with good...; Hi Friend, Yes. But Abstract class constructors will be called when its
Java Abstract Class
Java Abstract Class       An abstract class is a class that is declared by using the abstract keyword...;  --or-- Java provides a special type of class called an abstract class
abstract class and interface - Java Beginners
abstract class and interface  what is the need for an abstract class? when should we use an abstract class? when should we use interface instead of abstract class?   Hi friend, Abstract classes In java
abstract class and overriding - Java Beginners
abstract class and overriding  what is the difference between abstract class and overriding? Interface? Give some example program?   Hi friend, Abstract class : In java programming language, abstract classes
java abstract class - Development process
java abstract class  how to save and run abstract class program in java?please immediately reply sir.  Hi Friend, Consider the following example, abstract class A { abstract void hi(); void hello
Abstract class and Interface - Java Magazine
Abstract class and Interface  Dear Sir, Please anyone help me........I wane exact difference between Abstract class and Interface.what... abstract class AbstractExample { public AbstractExample(){ System.out.println
abstract class
abstract class   Explain the concept of abstract class and it?s use with a sample program.   Java Abstract Class An abstract class is a class that is declared by using the abstract keyword. It may or may not have
Abstract class
Abstract class  j   An Abstract class is a base class which...://www.roseindia.net/help/java/a/java-abstract-class.shtml http://www.roseindia.net/java/master-java/abstract-class.shtml
Abstract class
Abstract class  what is an Abstract class
Abstract class
Abstract class  Can an abstract class be final
abstract class
abstract class  Can there be an abstract class with no abstract methods
abstract class
abstract class  what is abstract class .why we use it or what is the need of this class?   Abstract class is like base class which... the following links: http://www.roseindia.net/help/java/a/java-abstract-class.shtml
why we use abstract class in java?
why we use abstract class in java?  what is the the purpose of abstract class.Give example when to use abstract and when use interface
Can we instantiate abstract class in Java?
Can we instantiate abstract class in Java?  HI, Can we instantiate abstract class in Java? Thanks   Hi, No, you can't instantiate an abstract class. Thanks
abstract class
abstract class  abstract class AbstractClass{ } is possible and compile the class or any compile time error occur tell me the answer Blockquote
Uses of abstract class & interface - Java Beginners
Uses of abstract class & interface  Dear sir, I'm new to java. I knew the basic concepts of interface and the abstract class. But i dont... classes from different types of hierarchy. Abstract Class: Any class
Abstract class
Abstract class  Calendar cal=Calendar.getInstance() We know that Calendar is an abstract class so it can't be instantiated. So how we can say that cal is an instance of Calendar??? Beginner Question I suppose. Thanks in advace
abstract class - Java Server Faces Questions
abstract class  Hello sir, I have problem with seeing entity class within abstract class. this is the entity class that i want to get: public... is abstract class and this is its code: public abstract class AbsEntity
abstract class - Java Server Faces Questions
abstract class  Hello sir, I have problem with seeing entity class within abstract class. this is the entity class that i want to get: public... is abstract class and this is its code: public abstract class AbsEntity
Abstract class,Abstract methods and classes
(); Abstract Class In java programming language, abstract classes... so many times the word abstract. In java programming language the word abstract... to implement the methods inherited from the abstract class (base class
code for abstract class
code for abstract class  code for abstract class
Abstract class and abstract method
be private because it defined in the other class. An abstract methods cannot... points about abstract methods are as following An abstract class may or may... also. An abstract class cannot be instantiated so it need to be a sub class
Interface and Abstract class
and Abstract Class 1)Main difference is methods of a Java interface are implicitly abstract and cannot have implementations. A Java abstract class can have instance...)Members of a Java interface are public by default. A Java abstract class can have
Why does Java provide both abstract class as well as interface
Why does Java provide both abstract class as well as interface  why does java have both abstract class as well as interface? what is the need or importance of having both
Advertisements
 

 

 

DMCA.com