package com.lzf.learn.basic;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class Learn_泛型的学习及理解 {




    //是相等的,  why?   ==> 只在编译期
    @Test
    public void test测试如何理解泛型指在编译期(){
        List<String> list1 = new ArrayList<String>();
        List<Integer> list2 = new ArrayList<Integer>();

        System.out.println(list1.getClass() ==  list2.getClass());

    }



}