is memory to the abstract class allocated ..or objects not
instantiated

Answer Posted / garima

for abstract class in java can not be directly instantiated
with new operator Because abstract class is not fully
defined.ie,it's meaningless to implement incomplete class
and Since "classname var =new classname();" is responsible
for allocating the memory ,hence there will be no memory or
object will be instantiated for abstract class.
But we can make reference to abstract class.
example Box b1;

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does split work in java?

522


Can an interface implement another interface?

554


Explain the difference between comparator and comparable in java?

474


What are the parts of a method?

523


How do you represent a space in regex java?

510






Can a class have more than one object?

511


Is string an object?

633


Under what conditions is an object’s finalize() method invoked by the garbage collector?

565


Can we rethrow the same exception from catch handler?

550


What is boolean flag in java?

559


How do you sort words in java?

516


What is the mapping mechanism used by java to identify IDL language?

577


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

492


What do you understand by final value?

577


How will you get the platform dependent values like line separator, path separator, etc., ?

569