Can you make an instance of an abstract class?

Answer Posted / hemant chouhan

you cant create the object or instance of abstract class
but you can create the reference of that class .actually
the abstract is a incomplete class since you provide the
implementation in the subcalss of abstrace so jvm prevent
if any one create the instance of that class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we overload destructor in java?

748


When can an object reference be cast to an interface reference in java programming?

764


What is meant by class and object in java?

720


Add a value x to array from index l to r where 0 <= l <= r <= n-1

860


Write a function for palindrome and factorial and explain?

851


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

764


what happens when a thread cannot acquire a lock on an object? : Java thread

797


What is the method to declare member of a class static?

749


What is the difference between array list and vector in java?

713


What is tcp ip in java?

796


What is factor r?

725


What Is Composition?

784


What is a return in java?

781


Can a static member function access member variable of an object?

754


Can a class have multiple subclasses?

791