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 |
Why are the methods of the math class static?
Can we override private method in java?
What is a linkedhashmap java?
How many techniques can be employed to create a string object?
what is the major difference between linkedlist and arraylist in java?
Does java arraylist maintain insertion order?
why pointer is not used in java?
What is string and example?
Suppose i have two threads t1 and t2 are running.How the main thread will know that the two threads t1,t2 execution has completed?
Explain notifyall() method of object class ?
What is the difference(or similarity if there are some) between object and a variable?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread