Created
May 10, 2021 16:01
-
-
Save 95Rajitha/5bcf9007deb360e311b618dfd54829e9 to your computer and use it in GitHub Desktop.
Type Erasure explanation in java
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
pulic class Sample | |
{ | |
private Object inputItems; | |
public Object emptyBucket() | |
{ | |
return inputItems; | |
} | |
public void dropToBucket(Object inputItems) | |
{ | |
this.inputItems = inputItems; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment