Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Choosing the Most Specific Method - Tricky Overloading

Choosing the Most Specific Method - Tricky Method OverloadingLet's start with looking at a code-segment and try to think of the output/error, it would produce when compiled/executed and subsequently we'll discuss the behavior of code.public class NullTest { Public Static Void method(Object obj){ System.out.println("method with param type - Object"); } public static void method(String



This post first appeared on Geek Explains: Java, J2EE, Oracle, Puzzles, And Problem Solving!, please read the originial post: here

Share the post

Choosing the Most Specific Method - Tricky Overloading

×

Subscribe to Geek Explains: Java, J2ee, Oracle, Puzzles, And Problem Solving!

Get updates delivered right to your inbox!

Thank you for your subscription

×