can abstract class have constructor how can you achive
this ?
Answers were Sorted based on User's Feedback
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 |
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 |
explain what is transient variable in java?
Is hashset ordered java?
what state does a thread enter when it terminates its processing? : Java thread
What is escape analysis algorithm in JVM and how garbage collection actually worked n how it transfer the objects from one kind of space to other?
What are the loops in java?
what is use of threads how many ways to create thread
What is the difference between import java.util.date and java .util?
Where pragma is used?
What is exception in java?
Which variables are stored in heap?
please send me hr interview questions in it industry
How do you download stubs from Remote place?