---
title: "Generic"
author: "maflyp"
date: "2012-02-13T11:30:44Z"
tags: []
categories: ["编程语言"]
slug: "generic"
draft: false
lastmod: "2012-02-13T11:30:44Z"
id: 1404259
url: "https://maflyp.iteye.com/blog/1404259"
---

public static void a(Object\[] b) { //System.out.print(b.getClass()); } public static void c(T\[] t) { a(t); //正确 System.out.print(t.getClass()); } public static void e(List b) { //System.out.print(b.getClass()); } public static void f(List t) { e(t);　//编译出错 System.out.print(t.getClass()); }