Monday, July 21, 2014

Basic Java - 2

In interviews, they might want to get your idea on re-usability concepts and how you will really re-use code from a design perspective.

What is an Abstract class ?
What is an interface ?
What are the differences ?
When you use Abstract class ? When you use interface ?
Can abstract class have constructors ?

Java is pass by value...

Try to swap the reference :)

Threads, wait, sleep, notify etc.

lock for static and non static method.


VMware questions

1. What is linked clone vm ?

Linked clone is made from a snapshot of a parent vm with virtual disks shared between the clone and the parent. This clone is dependent on the parent vm. It needs access to the parent vm. If there is no access to the parent vm, then the clone is powered off. The changes to the parent virtual disks will not affect the clone and vice versa. The changes are tracked based on delta disks per cloned vm.

2. What is storage vMotion ?
moving a vm from one host to another host without downtime to the users.
In this process the storage of the vm, resides in the initial host itself. This is called VMware vMotion.
sVMotion is storage vMotion where the vm is moved from one host to another host with no down time. In this process, the storage associated with the vm is also moved to the destination host.

3. Difference between linked clone and full clone
full clone is full clone, independent from the parent. It needs no access to the parent vm. It takes several minutes to get cloned based on the size of the parent vm.

linked clone needs access to parent vm, otherwise it is powered off. It is created swiftly. May have performance issues because disk space is shared