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
Who is the owner of java?
Can we have multiple public classes in a java source file?
What is the scope or life time of instance variables?
How concurrent hashmap works?
Define a package.
Difference between arraylist and vector.
What is a boolean expression in java?
Why is multithreading important?
Why is static used?
Can a method be overloaded based on different return type but same argument type?
What are recursive functions? Give some examples?
What is difference between fail-fast and fail-safe?
What is default exception handling in java?
What is the difference between stringbuffer and stringbuilder class?
Can a class have multiple subclasses?