what is object slice?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rajashekar reddy peta
Object slicing is defined as the conversion of an object into something with less information (typically a superclass).
| Is This Answer Correct ? | 5 Yes | 2 No |
How java uses the string and stringbuffer classes?
What is final method?
Explain the usage of this with constructors?
What are command line arguments?
When finally clause is executed?
where the static methods will live ,on stack ? can you explain brefly
How do you remove spaces in java?
Why string is popular hashmap key in java?
Can we declare an anonymous class as both extending a class and implementing an interface?
8 Answers College School Exams Tests, JVA, TCS, Wipro,
what are the jsp tags with example?
What is I/O Filter?
How transient variable is different from volatile variable?