Continuation….

This post is in continuation to the previous post – Co-variance and Contra-variance Arrays in Java are Co-variant. Which basically means if “String” extends “Object” then “String[]” also extends “Object[]”. Do you see ¬†any pitfall’s above?? Lets look at the following example Example – 1…