Java的语法分为标示符和数据类型 Java的概述: 一些手打的: long l = 12345; //隐式转换 int a = (int)121234567L; //强制转换 float f =123.45;(提示报错) 默认为int类型,所以无法转换 下面三种为正确格式: { float f = 123.45F; f = (float)123.45; double d =123.45; } char c =‘中’; char和int是兼容型 char c1 =123; System.out.…
1 Annotation 1.1 Annotation 概念及作用 1. 概念 An annotation is a form of metadata, that can be added to Java source code. Classes, methods, variables, parameters and packages may be annotated. Annotations have no direct effect on the operation of the…