java词汇(编辑修改稿)内容摘要:
ctor. The JVM calls the finalizer for you as appropriate。 you never call a finalizer directly. Think of the finalizer as a friendly warning from the virtual machine. Your finalizer should perform two tasks: performing whatever cleanup is appropriate to the object, and calling the superclass finalizer. If you do not have any cleanup to perform for an object, then you‟re better off not adding a finalizer to the class. Floatingpoint literals Floatingpoint literals are defined as double by default, but if you want to specify in your code a number as float, you may attach the suffix F to the number. Floatingpoint numbers Floatingpoint numbers are defined as a number, a decimal symbol, and more numbers representing the fraction. FlowLayout manager This layout manager arranges ponents within the container from left to right. When the container runs out of room on the current row FlowLayout resumes positioning ponents on the next row. FocusEvent A ponent generates a FocusEvent when it gains or loses keyboard focus. The event ID is set to either FOCUS_GAINED or focus lost. There are two types of focus events, permanent and temporary. Permanent focus events indicate that another ponent has gained the focus, whereas temporary focus events indicate that the ponent has lost focus temporarily due to window deactivation or scrolling. For loop A flow control statement is used when a program needs to iterate a section of code a known number of times. There are three main parts to a for statement. They are the declaration and initialization of variables, the expression, and the incrementing or modification of variables. Each of the sections are separated by semicolons. The for loop is a remarkable tool for developers because it allows you to declare and initialize zero, one, or multiple variables inside the parenthesis after the for keyword. Garbage collection The process by which memory requested, but no longer in use, by a Java application is reclaimed by the Java VM. Generational garbage collectors Generational garbage collectors make the tradeoff of running faster with the cost of leaving garbage lying around longer. With today‟s large 词汇表█ 7 memory machines, this is a very reasonable tradeoff to make. GridBagLayout layout manager The GridBagLayout layout manager allows the placement of ponents that are aligned vertically and/or horizontally without constraining those ponents to be a particular size, height, or width. The GridBagLayout acplishes this by defining a dynamic grid of cells. The constraints object passed when the ponent is added to the container determine how many cells the ponent enpasses. GridLayout manager This layout manager arranges ponents in a grid within a container. Each cell in the grid is of equal dimensions. The GridLayout manager ignores the preferred size of each ponent and resizes them to exactly fit each cell‟s dimensions. As each ponent is added to the container the GridLayout inserts them across each column until that row is filled and then starts at the first column of the next row. Guarded region A section of code that is watched for errors to be handled by a particular group of handlers. HashMap class The HashMap class is roughly equivalent to Hashtable, except that it is not synchronized for threads and it permits null values to be stored. Heap Java manages memory in a structure called a heap. Every object that Java creates is allocated in the heap, which is created at the beginning of the application and managed automatically by Java. Hexadecimal literals Hexadecimal numbers are constructed using 16 distinct symbols. The symbols used are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. Identifiers Identifiers are names that we assign to classes, methods, and variables. Java is a casesensitive language, which means identifiers must have consistent capitalization throughout. Identifiers can have letters and numbers, but a number may not begin the identifier name. Most symbols are not allowed, but the dollar sign ($) and underscore (_) symbols are valid. See also Reference variable. If statement If statements test an expression for a Boolean result. This is achieved by using one or more of Java‟s relational operators inside the parenthesis of the statement to pare two or more variables. Also, you can simply use the reserved word true as the expression to force execution of the block of code. See also Decision statement. Import statement Import statements allow us to refer to classes without having to use a fully qualified name for each class. Import statements do not make classes accessible。 all classes in the classpath are accessible. Inheritance Inheritance is an objectoriented concept that provides for the reuse and modification of an existing type in such a way that many types can be manipulated as a single type. In Java, inheritance is achieved with the extends keyword. Inner classes Inner classes are a type of class and follow most of the same rules as a 8 █ Sun认证 Java 2程序员学习指南 (Exam 310025) 第二版(影印本) normal class. The main difference is an inner class is declared within the curly braces of a class or even within a method. Inner classes are also classes defined at a scope smaller than a package. See also Anonymous inner classes。 Local inner classes。 Member inner classes。 Static inner classes. InputEvent class An InputEvent is an abstract class that serves as the base class for MouseEvent and KeyEvent. InputEvent defines the following method to determine the time of the event. Instance Once the class is instantiated, it bees an object. A single object is referred to as an “instance” of the class from which it was instantiated. Instance initializer An instance initializer (an alternative to lazy initialization) is a block of code (not a method!) that automatically runs every time you create a new i。java词汇(编辑修改稿)
相关推荐
return true。 } function isChinese(name) //中文值检测 { if( == 0) return false。 for(i = 0。 i。 i++) { if((i) 128) return true。 } return false。 } function isMail(name) // Email值检测 { if(! isEnglish(name))
用。 第十, ()等于多少。 ()等于多少。 ()返回( long) 12, ()返回( long) 11。 第十一, short s1 = 1。 s1 = s1 + 1。 有什么错。 short s1 = 1。 s1 += 1。 有什么错。 ( 面试题都是很变态的,要做好受虐的准备) short s1 = 1。 s1 = s1 + 1。 有错, s1 是 short 型, s1+1 是
集料的选择必须经过认真的料源调查,确定料源应尽可能就地取材。 质量符合使用要求 ,石料开采必须注意环境保护,防止破坏生态平衡。 集料粒径规格以方孔筛为准。 不同料源、品种、规格的集料不得混杂堆放。 道路石油沥青。 各个沥青等级的适用范围应符合表。 经建设单位同意,沥青的 PI值、 60℃动力粘度, 10℃延度可 作为选择性指标。 道路石油沥青的适用范围 表 沥青等级 适用范围 A级沥青
n opposite way. The man relates to my descriptions of women and the woman relates to my descriptions of men. I call this role reversal. If you discover you are experiencing role reversal, I want to
al)设置秒 [注意 :此日期时间从 0开始计 ] 的表示方式 : [window.]frames[n].ObjFuncVarName,frames[frameName].ObjFuncVarName, 代表父亲对象 ,top 代表最顶端对象 :opener :this JS 函数时用 :(javascript:)来开头后面加函数名 JS:! // 49. 引 用 一 个 文 件 式 的 JS:
享的数据。 基于 J2EE 的 Web 服务的核心构架: RMI 1. RMIIIOP 2. RMI 是在 java 中使用 remote method invocation 的最初的方法, RMI 使用 包 RMI- IIOP 是 RMI 的一个特殊版本, RMI- IIOP 可以和 CORBA 兼容, RMIIIOP 使用 JAF(Java活动构架 ) 开发者可以使用