can abstract class have constructor how can you achive
this ?

Answers were Sorted based on User's Feedback



can abstract class have constructor how can you achive this ?..

Answer / rajasekharreddy.y

Yes abstract class must have the constructor, these
constructor we can achive by creating the instance of the
concreate subclass of the abstract class.

Is This Answer Correct ?    14 Yes 2 No

can abstract class have constructor how can you achive this ?..

Answer / ravikiran

Yes abstract class has a constructor

Is This Answer Correct ?    7 Yes 1 No

can abstract class have constructor how can you achive this ?..

Answer / bhargava

You cannot crate the constructor for an abstract class
directly. But you can create constructor for subclass for
an abstract class by making new class sub class for the
abstract class.

Is This Answer Correct ?    1 Yes 7 No

can abstract class have constructor how can you achive this ?..

Answer / guest

dsf

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Core Java Interview Questions

Can we store variables in local blocks?

0 Answers   Global Logic,


Define packages in java?

0 Answers  


Difference between Web-based applications,Client- Server applications and Distributed applications?

3 Answers   Infosys,


Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target

7 Answers   Infosys, WW,


Can we call a non-static method from inside a static method?

0 Answers  


What is the purpose of garbage collection in java, and when is it used?

0 Answers  


When should I use abstract classes and when should I use interfaces?

2 Answers  


What classes of exceptions, caught by a catch clause?

1 Answers  


Can we write multiple catch blocks under single try block?

0 Answers  


How do you identify independent and dependent variables?

0 Answers  


Is set ordered?

0 Answers  


Why are lists ordered in java?

0 Answers  


Categories