代码示例如下:

package generics;

//: generics/GenericMethods.java

public class GenericMethods<A> {

    // private static A element;

    public <T> void f(T x) {
System.out.println(x.getClass().getName());
} // public static void staticMethod(A x) {
//
// } public static void main(String[] args) {
GenericMethods<String> gm = new GenericMethods<String>();
gm.f("");
gm.f(1);
gm.f(1.0);
gm.f(1.0F);
gm.f('c');
gm.f(gm);
}
} /*
* Output: java.lang.String java.lang.Integer java.lang.Double java.lang.Float
* java.lang.Character GenericMethods
*/// :~

static方法无法访问泛型类的类型参数,举例如下:

上例中

private static A element;这段代码报错信息如下:

Cannot make a static reference to the non-static type A

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjUAAABcCAIAAAAZE9N0AAAXPElEQVR4nO2d7U8cR57H6+X9BZH2pNt3K3mjODovrNfhhZ03yPJ6cfbsoDgk5OCiHQVZ2ILYyrCOFg5dYueW0zC7iy/Zlda+EJPc2XHWELASggfiwfPoQax52DCYR89DGBvDrAewwe57UT09Vd013TXN9PQM/H76KCLtmupfV0/Xd75V1d1IoGNpaanoI43/+qNDxrG2tmZo/QAAAEBBgGT6pClOS0tLhiYE+gQAAAD4lfoE/gkAAADIB8A/AQAAAPkI+CcAAAAgH8lf/xSNPwUAAAC2Lfnrn0xvGgAAAMBEwD8BAAAA+Qj4JwAAACAfAf8EAAAA5CNp/ZPAim3qny7bG1F5Iypvv2x2JqaTz01x2YIQKj4bND8TAACyAds/CYIw73QGjr/hrTzg2b/XW3kgcPyNeacTS5S2zIxdfN+aLs5dLTR9clWX4065cfeVcbOT2UpN0VGNEEKoujs76YE+AcDWguGfsDh59u+dqX7tfnPT6sd/vN/cNFP9mmf/XixRm9KnlouOQtMn40yDq7q8EZ3sHjI2f917YXwwm03RXYlwWDqyc5oKSZ86qrN34ACwRZHrkyROqx+8JwjCSnMTRhCE1Q/ewxKlc+zOec5qtb7fOVB443uGcLd7N/YihuqT7r0Ynp777AsIoeLdL2RNVApJn4LNu0GfAEADhj5N1tRPv/RKoqFBcDgEQUg0N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AA82GylvaPXB2fd3jD4J8AwsD7dnPX0jfeDPgEAwIPNVto33n9zzqOhT+CfgM3giwR84YB73ts/cQP0CQAAHmy20v7gDfe8zxcJgH8CjALrkyfkd067QJ8AAODBZit1Trs8Ib+GPoF/AjYJHuJzzXlttlIAAAAeXHNeb/iWnxAn/6b9k8aLM6hHxHK8XMNfCPqEH7qKOF6/tD3BS/hcc17ntKs/eKNvvL939PrXI32b4cI7zyKEnn2nfZP1fP3hL/TWc+YgQuifj13YZALGgNsnFWSe+g9ZB2Ir1ZQjhJ6tuWZSg1w7hpuDedTvmZsbd4vlWZ5G0Tt6vW+8vz94wzntcs15s7R+T/b6DJb24BcSahaTkd/6lHrfEhlZeUC4vVLXq5jykMiQLxLwXryBkKPO6bs55xmcdQ/OmEBLBULoly3kxgu/RAg995vLWajK9GMhjogVycJ6D3lzSV4+8ROEflL3v6a0zEDdc7JGkJd/7sSAaaeSu8Vy14ZmMuu+Oedxz/s8Ib+4OCKS6kz0+iesT+e7/NGuNqbwiAImvfOpq81qtVqt73cOqPdu+axPonOiX5tkr8yKPmHl2xL6FB3yR7yHUT8qdl2JBLzhW97wLW+IjSfkN4y/1BchhA7byI2fHEYI7Wz6S2ZVDZ7cidC/fGJcqrqOJXk4CCFUdPJz+fZkYX2HrANZK31yGOWi0VgtM3hyJ0KoaOdOhNDrv5N9xPY6Qmhn/aCJZ5O7xXLUhjlF3gmEb2FZ8kUCfgzRk/w/m0EW/zbpeRAAAAAASUVORK5CYII=" alt="" />

##################

public static void staticMethod(A x) {

}

这个方法报错信息如下:

Cannot make a static reference to the non-static type A

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtsAAABfCAIAAAC2rJwYAAAYQklEQVR4nO2d708bV7rH5+X9CyrtlW7frZTdF5UiUkp4kfQNirIRrbTZqC0VuaBKVvOCVKGJdtj0XnLRLaHarAy7m2i7Ky255SZvSBuF1PS2EQEaE2xwbLEJ0GLCz9i4OCHgjYEEyNwXZ2Z8ZubML+MZ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iEcHdqcbh8AkHOMjQQAALTASAAAuWd4ITwUvzcwE7g1ehtGAgCwgtdbcWv09sBsYCgOIwEA5AhiJHdngz3jfTASAIAVvN6KnvG+u3NBGAkAIGcML4SH4+HA/FDfxB0YCQDACl5vRV/0TmB+eHghDCMBAOQGYiTBWMg/PQgjAQBYweut8E8PBmMhGAkAIJeQhZvBuSGvtwIAAKwwODc0FL8XypGR9Hdc4Hme5y9c6dUbqujv5Gu/aTquwUgAKETI5TaDc0P+6cG+6J2e8b5bo7e/e9ADAAAqbo3e7hnv64ve8U8PDs4NbftaG9V3/+oYyY129VcDX/SbjGswEgAKkgUxTRKMhQLzw3fnggOzgYEZAADQMBu4OxcMzA8HY6Gh+L1tr9oQI2m/GUrcvKhjJL1d53me5/nzHWOZR2AkABQtC+HQQnh4IUzUZCh+byjGJhgLAQB2D+pBIH6PiMjwQpiMG7mqI9ExkrErzUodsQiMBICCZliSEgAAMIWMG84aCUmQNHf12x3OYCQAAADAruL/AbXyEa71op6UAAAAAElFTkSuQmCC" alt="" />

java自动打包的概念是什么

Java编程思想-泛型-泛型方法的更多相关文章

  1. Java编程思想:泛型方法

    import java.util.*; public class Test { public static void main(String[] args) { // GenericMethods.t ...

  2. Java编程思想-泛型-简单泛型例子

    基本类型无法做为类型参数 代码如下: /** * */ package test.thinkinjava.Generics; import java.util.ArrayList; import ja ...

  3. java编程思想-泛型思维导图

  4. Java中的泛型 --- Java 编程思想

    前言 ​ 我一直都认为泛型是程序语言设计中一个非常基础,重要的概念,Java 中的泛型到底是怎么样的,为什么会有泛型,泛型怎么发展出来的.通透理解泛型是学好基础里面中非常重要的.于是,我对<Ja ...

  5. Java编程思想(11~17)

    [注:此博客旨在从<Java编程思想>这本书的目录结构上来检验自己的Java基础知识,只为笔记之用] 第十一章 持有对象 11.1 泛型和类型安全的容器>eg: List<St ...

  6. 《Java编程思想》读书笔记

    前言 这个月一直没更新,就是一直在读这本<Java编程思想>,这本书可以在Java业界被传神的一本书,无论谁谈起这本书都说好,不管这个人是否真的读过这本书,都说啊,这本书很好.然后再看这边 ...

  7. Java编程思想(后)

    Java编程思想(后) 持有对象 如果一个程序只包含固定数量的且其生命期都是已知的对象,那么这是一个非常简单的程序. Java中的库基本类型: List, Set, Queue和Map --- 称为集 ...

  8. JAVA编程思想——分析阅读

    需要源码.JDK1.6 .编码风格参考阿里java规约 7/12开始 有点意识到自己喜欢理论大而泛的模糊知识的学习,而不喜欢实践和细节的打磨,是因为粗心浮躁导致的么? cron表达式使用 设计能力.领 ...

  9. Java编程思想 笔记

    date: 2019-09-06 15:10:00 updated: 2019-09-24 08:30:00 Java编程思想 笔记 1. 四类访问权限修饰词 \ 类内部 本包 子类 其他包 publ ...

随机推荐

  1. Java线程生命模型

    一. 线程状态类型1. 新建状态(New):新创建了一个线程对象.2. 就绪状态(Runnable):线程对象创建后,其他线程调用了该对象的start()方法.该状态的线程位于可运行线程池中,变得可运 ...

  2. BZOJ 3106 棋盘游戏

    Description 一个\(n \times n(n \le 2)\)棋盘上有黑白棋子各一枚.游戏者A和B轮流移动棋子,A先走. A的移动规则:只能移动白棋子.可以往上下左右四个方向之一移动一格. ...

  3. Preparing for the Contest

     Codeforces Round #222 (Div. 1)B:http://codeforces.com/contest/377/problem/B 题意:m个任务,每个任务会有一个复杂度,然后给 ...

  4. Android中SharedPreferences使用方法介绍

    一.Android SharedPreferences的简介 SharedPreferences是一种轻型的Android数据存储方式,它的本质是基于XML文件存储key-value键值对数据,通常用 ...

  5. Linux Shell脚本Ldd命令原理及使用方法

    1.首先ldd不是一个可执行程序,而只是一个shell脚本2.ldd能够显示可执行模块的dependency,其原理是通过设置一系列的环境变量如下:LD_TRACE_LOADED_OBJECTS.LD ...

  6. Linux Shell编程(4)——shell特殊字符(上)

    在脚本或其他别的地方出现的特殊字符#注释. 以一个#开头的行 (#!是例外) 是注释行.# 这是一行注释.注释也可以出现在一个命令语句的后面.echo "A comment will fol ...

  7. SQLCMD的用法,使用CMD 执行sql语句

    SQLCMD的用法,使用CMD 执行sql语句 SQLCMD 允许在Windows命令窗中通过命令行提示符运行脚本. 语法如下: sqlcmd  [  { { -U <login id> ...

  8. Selenium自动化测试环境搭建汇总(一):Selenium+Eclipse+Junit+TestNG

    第一步 安装JDK JDk1.7. 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-188026 ...

  9. 【模拟】Class 解题报告

    [问题描述] 信息班这期的课将要结束了,老师要从现在班上的同学中选出比较优秀的同学进入下一期的学习.而录取标准则是将平时作业和考试一起考虑,综合成绩排在前面的则录取.经过一番思考,老师作了以下的筛选计 ...

  10. python--把一个方法变成属性调用

    # coding=utf-8 ''' 装饰器(decorator)可以给函数动态加上功能,对于类的方法,装饰器一样起作用.Python内置的@property装饰器就是负责把一个方法变成属性调用的: ...