If one class havent the constructor, it has normal method,
then can i use super keyword to call the method form the
sub class and vice verse?
Answers were Sorted based on User's Feedback
Answer / srikanth
no,without constructer we cant call super class members
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nivas
yes.we can use it.for ever class super class should be called
| Is This Answer Correct ? | 0 Yes | 1 No |
Why is struts used in java?
Explain daemon thread.
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.
Explain the encapsulation principle.
What is an action class in java?
Differences between intermediate operations and terminal operations of java 8’s stream api?
What are the disadvantages of java sockets?
What is singleton pattern in java?
Are there tuples in java?
What is dto in java?
Why are lambda functions called lambda?