hoe can u call a constructor of a private classs to other
inherited claa??
Answer / ditendra
class can't be private if it is not a inner class .
we can call constructor of inherited class from private
inner class using super()method.
Is This Answer Correct ? | 18 Yes | 0 No |
Does java have extension methods?
What is the difference between an array and an array list?
What is the use of collections in java? How it is implemented in real time applications?
What are different types of classloaders?
Can we override private method in java?
IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.
What is character in data type?
What is the basic concepts of OOPS?
Why is serialization required?
when you will synchronize a piece of your code? : Java thread
What are virtual methods?
Which method must be implemented by all threads?