what is object slice?

Answers were Sorted based on User's Feedback



what is object slice?..

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

what is object slice?..

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

Post New Answer

More Core Java Interview Questions

what is difference between requestprocessor and request dispatcher?

2 Answers   Tech Mahindra,


How many bytes is a url?

0 Answers  


What is update method and when it is called?

2 Answers   TCS,


system.out.println(1 + 3);

8 Answers  


Why are strings immutable in Java?

1 Answers  






What are java threads?

0 Answers  


Write a java program to generate fibonacci series ?

0 Answers   Cyient,


What is deserialization?

0 Answers  


Is 0 true or false in java?

0 Answers  


What is null statement?

0 Answers  


transaction attributes ?

2 Answers  


what is Abstract DataType?

1 Answers  


Categories