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 |
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
What is cache in java?
explain how java se 8 data and time api solves issues of old java date api?
What is scrollable resultset in java?
what about jdb and javadoc by example ?
What is flatmap in java8?
What is servlets.
What is the java api?
How does java handle integer overflows and underflows?
Why java?
How do I enable java in google chrome?
Why sun introduce concept of anonymous class? What is need and real life use of anonymous class