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

Difference between an argument and a parameter?

10 Answers   Accounting, HCL, IBM, Quinnox,


how many design pattern r there? and wht design pattern u use and why ?

5 Answers   HP,


What is the difference between method and constructor ?

3 Answers  


what release of java technology are currently available what do they contain?

1 Answers  


What is the difference between abstract class and interface?

3 Answers   Aspire,






Are arrays dynamic in java?

0 Answers  


Explain about Superclass and Subclass?

6 Answers  


What is a line break example?

0 Answers  


What is locale?

0 Answers  


what is method reference in java 8?

0 Answers  


Can classes declared using the abstract keyword cab be instantiated?

0 Answers   MCN Solutions,


Is it possible to create object with out its default constructor? if possible how? else not possible? justify

5 Answers  


Categories