Answer Posted / aburar yaseen
overloading:previous answers are correct.
overriding: overriding is possible only in inheritance.
we will have more than one methods in the same name with
same no. of arguments with same type in different classes.
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
What happens if an exception is throws from an object's destructor?
Can a static block throw exception?
Can you make a constructor final in Java?
What are the differences between checked exception and unchecked exception?
What is difference between call by value and call by reference?
What about member inner classes?
Can a class have more than one object?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is difference between Heap and Stack Memory?
Can we override constructors?
Tell me how many ways are there to initialise an integer with a constant.
Explain thread in java?
Which of the classes will have more memory allocated?
You're given a Boolean 2D matrix, can you find the number of islands?
What are actual parameters?