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 |
What is thread synchronization in java?
Which collection does not allow duplicates in java?
What is the difference between the program and the process?
Can a double value be cast to a byte?
when to for abstract class and when to go for interface
What happens if main method is not static?
why string constant pool in java
What are the difference between composition and inheritance in java?
What is difference between path and classpath variables?
if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the system excute these threads
What is the % operator?
What is meant by final class, methods and variables?