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 is arrays fill in java?
What is a buffer in java?
Write a method to check if input string is palindrome?
What is compareto?
What happens if we don’t override run method ?
Can we have any code between try and finally blocks?
Program to Find the second largest element in an array.
Explain the difference between comparator and comparable in java?
What is method overloading in java ?
What do you understand by the term wrapper classes?
Difference between serialization and deserialization in java?
Why synchronization is important in java?
What is the use of parseint in java?
What is ascii code?
What is return code?