Here are 7 rules to remember regarding Java Generics to understand Generics and handle interview and coding questions on Core Java. Object <– Fruit <– (Orange, Mango, etc siblings) Rule…
…Here are 7 rules to remember regarding Java Generics to understand Generics and handle interview and coding questions on Core Java. Object <– Fruit <– (Orange, Mango, etc siblings) Rule…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Q1 What do you understand by the term type erasure with regards to generics? A1. The term type erasure is used in Java generics. In the interest of backward compatibility,…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Q1. If java.lang.Object is the super type for java.lang.Number and, Number is the super type for java.lang.Integer, am I correct in saying that List<Object> is the super type for List<number> and,…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
In an earlier post we looked at Understanding Overriding, Hiding, and Overloading in Java?. We also discussed how “method overriding” gives polymorphism. In this post, let’s see how a “generic…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Generics in Java can be be a bit tricky to get your head around. Hope the explanation below enhances your understanding of generics. This complements 5 Java generics interview Q&As…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs