Interviewer And Interviewee Guide

Java Classes Interview Question:

Explain can a abstract class have a constructor? When would the constructor in the abstract class be called?

Submitted by: Administrator
constructor can not be created in an abstract class.even though we write the constructor, when the constructor will be called..?only if the object is created. but we cannot create an object of abstract class.even though we create object using indirect way, there also, we cannot call the constructor of the abstract class.finally, constructor for the abstract class cannot be called.
Submitted by: Administrator

Read Online Java Classes Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.