adspace
Answer Posted / Arti Rajput
No, it is not possible to inherit a class with a private constructor. Private constructors limit the creation of objects outside of their defining class and cannot be accessed by subclasses.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between break and continue statements?
How to sort array in descending order in java?
What is an object in java and how is it created?
Realized?
What is a constructor overloading in java?
What are the differences between heap and stack memory in java?
Is minecraft 1.15 out?
What is java string pool?
Write a program to find the whether a number is an Armstrong number or not?
Explain public static void main(string args[]) in java.
explain different ways of using thread? : Java thread
Differentiate between static and non-static methods in java.
How to create a base64 decoder in java8?
What do you mean by an interface in java?
Write a program to print count of empty strings in java 8?