Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package cvi6.demonstrations;
- import java.lang.ref.SoftReference;
- public class Reference {
- public static SoftReference<String> ref() {
- String some = "neco";
- return new SoftReference<String>(some);
- }
- public static void main(String[] args) {
- SoftReference<String> soft = ref();
- String some = soft.get();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement