Answer Posted / vivek
When a derived class object is assigned to a base class,
only the base class's part of content in the derived object
are copied to the base class, leaving behind the derived
class specific contents. This is referred as Object Slicing.
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What does this () mean in constructor chaining concept?
What is java oops?
What is string immutability?
What is preflight request?
Is set ordered in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
How the interruptible method gets implemented?
What is oop principle in java?
What is hasnext in java?
what do you mean by marker interface in java?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is the difference between && and & in java?
What is the largest long allowed by java?
What is ide with example?
Why java is secure? Explain.