Skip to content

Instantly share code, notes, and snippets.

@saqibmehmoodgit
Created April 4, 2017 06:00
Show Gist options
  • Save saqibmehmoodgit/c300316e84ac20dba022bf07b3bf8fd5 to your computer and use it in GitHub Desktop.
Save saqibmehmoodgit/c300316e84ac20dba022bf07b3bf8fd5 to your computer and use it in GitHub Desktop.
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