Created
April 4, 2017 06:00
-
-
Save saqibmehmoodgit/c300316e84ac20dba022bf07b3bf8fd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void acceptObejct(Object ob) | |
{} | |
public static void printList(List<Object> list) | |
{ } | |
/// Main methods calling. | |
Integer a=90; | |
acceptObejct(a); // ok , not exception | |
//// | |
List<Integer> li1 = Arrays.asList(1, 2, 3); | |
printList(li1); /// compile time error/exception | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment