⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch38.htm

📁 Java_by_Example,初级经典例子哦,珍藏版本
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<B>increment</B>&nbsp;&nbsp;Increase the value of a variable.<P><B>index</B>&nbsp;&nbsp;The same thing as a subscript. Used toidentify a specific array element.<P><B>infinite loop</B>&nbsp;&nbsp;A loop that cannot stop executingbecause its conditional expression can never be true.<P><B>inheritance</B>&nbsp;&nbsp;In object-oriented programming,the ability of a new class to inherit the data fields and functionsof another object.<P><B>initialize</B>&nbsp;&nbsp;Set the starting state of a programobject. For example, you should initialize variables to a valuebefore you attempt to use them in comparisons and other operations.<P><B>int</B>&nbsp;&nbsp;In Java, the <TT>int</TT> data type, whichis 32 bits long, can hold values in the range -2,147,483,648 to2,147,483,647.<P><B>integer</B>&nbsp;&nbsp;A whole-number value. For example, thevalues 23 and -15 are both integers. (Notice that integers canoften be negative.)<P><B>interface</B>&nbsp;&nbsp;A special type of Java class thatdeclares, but does not implement, a set of behaviors. Interfacesallow Java programs to take advantage of a special type of multipleinheritance.<P><B>Internet</B>&nbsp;&nbsp;A huge world-spanning network of computersthat can be used by anyone with a suitable connection.<P><B>I/O</B>&nbsp;&nbsp;Stands for input/output and refers to acomputer's ability to receive data (input) and send data (output).<P><B>java</B>&nbsp;&nbsp;The Java interpreter.<P><B>javac</B>&nbsp;&nbsp;The Java compiler.<P><B>javadoc</B>&nbsp;&nbsp;A tool that automatically creates documentationfrom Java source-code files.<P><B>javah</B>&nbsp;&nbsp;A java tool used to create header filesfor implementing native methods.<P><B>javap</B>&nbsp;&nbsp;The Java disassembler, which converts.CLASS files into a description of the original source code.<P><B>jdb</B>&nbsp;&nbsp;The Java debugger.<P><B>JPEG</B>&nbsp;&nbsp;Another type of graphical-image file format.<P><B>leading</B>&nbsp;&nbsp;The amount of white space between linesof text.<P><B>literals</B>&nbsp;&nbsp;Values, such as a number or text string,that are written literally as part of program code. The oppositeof a literal is a variable.<P><B>local applet</B>&nbsp;&nbsp;An applet that's stored on yourcomputer system, rather than somewhere else on the Internet.<P><B>logical expression</B>&nbsp;&nbsp;Results in a value of trueor false.<P><B>logical operators</B>&nbsp;&nbsp;Operators like &amp;&amp;(AND) and II (OR) that enable you to create logical expressionsthat yield <TT>true</TT> or <TT>false</TT> results.<P><B>long</B>&nbsp;&nbsp;In Java, the <TT>long</TT> data type is64 bits in length and can hold truly immense numbers.<P><B>loop</B>&nbsp;&nbsp;A program construct that enables a programto perform repetitive tasks.<P><B>method</B>&nbsp;&nbsp;A method is a function that's encapsulatedas part of an object.<P><B>modal dialog box</B>&nbsp;&nbsp;A dialog box that must be dismissedbefore the user can continue with the program.<P><B>modeless dialog box</B>&nbsp;&nbsp;A dialog box that allowsthe user to switch to another window while the dialog box is stillon the screen. The opposite of a modal dialog box.<P><B>modular programming</B>&nbsp;&nbsp;Breaking a large programdown into a number of functions, each of which performs a specific,well-defined task.<P><B>multidimensional array</B>&nbsp;&nbsp;An array that must beaccessed using more than one subscript.<P><B>multiple inheritance</B>&nbsp;&nbsp;When a class simultaneouslyinherits methods and fields directly from more than one base classsimultaneously.<P><B>multitasking</B>&nbsp;&nbsp;Running more than one computerprogram concurrently.<P><B>native methods</B>&nbsp;&nbsp;Functions that are written ina language other than Java, but are called from within a Javaprogram. C++ is usually used to create native methods.<P><B>nesting</B>&nbsp;&nbsp;When one program block is placed withinanother program block.<P><B>numerical expression</B>&nbsp;&nbsp;Combines numbers, variables,or constants using operators.<P><B>Oak</B>&nbsp;&nbsp;The original name of the Java programminglanguage.<P><B>object-oriented programming</B>&nbsp;&nbsp;A programming paradigmthat treats program elements as objects that have data fieldsand functions that act on the data fields. The three main characteristicsof OOP are encapsulation, inheritance, and polymorphism.<P><B>one-dimensional array</B>&nbsp;&nbsp;An array that's set uplike a list and requires only one subscript to identify a valuecontained in the array.<P><B>operator precedence</B>&nbsp;&nbsp;Determines the order inwhich mathematical operations are performed.<P><B>order of operations</B>&nbsp;&nbsp;Same as operator precedence.<P><B>override</B>&nbsp;&nbsp;In object-oriented programming, thismeans replacing a method in a base class with a specific versionin a derived class.<P><B>package</B>&nbsp;&nbsp;A collection of related Java classes.<P><B>parameter</B>&nbsp;&nbsp;A value that is passed to an appletor method. In the case of an applet, the parameters are definedin the HTML document, using the <TT>&lt;PARAM&gt;</TT> tag.<P><B>pass by reference</B>&nbsp;&nbsp;When an argument is passedto a function by passing a reference to the actual value. In thiscase, if you change the argument in the function, you also changethe original.<P><B>pass by value</B>&nbsp;&nbsp;When an argument is passed intoa function by passing a copy of the value. In this case, changingthe copy doesn't affect the original value.<P><B>pixel</B>&nbsp;&nbsp;The smallest dot that can appear on thescreen.<P><B>platform-neutral language</B>&nbsp;&nbsp;A programming languagethat can be used on any computer, regardless of the computer'soperating system.<P><B>point</B>&nbsp;&nbsp;A unit of measurement of a font's height.One point is equal to 1/72 of an inch.<P><B>polymorphism</B>&nbsp;&nbsp;In object-oriented programming,this is the ability for a new object to implement the base functionalityof a parent object in a new way.<P><B>program flow</B>&nbsp;&nbsp;The order in which a program executesstatements.<P><B>pseudocode</B>&nbsp;&nbsp;Program code that uses a generaltype of syntax rather than being written using any specific programminglanguage. pseudocode is used to describe programming conceptsin a non-language-specific way.<P><B>radio buttons</B>&nbsp;&nbsp;A group of checkboxes in whichonly one checkbox can be selected at a time.<P><B>remote applet</B>&nbsp;&nbsp;An applet that's stored on anothercomputer and which must be downloaded to your computer over theInternet.<P><B>runtime exception</B>&nbsp;&nbsp;An exception thrown by thesystem in response to unexpected problems when an applet is running.An example would be the exception generated when an applet attemptsto perform a division by zero.<P><B>scope</B>&nbsp;&nbsp;A variable's scope determines where ina program the variable can be accessed. In Java, a variable'sscope is determined by the program block in which it first appears.<P><B>self-documenting code</B>&nbsp;&nbsp;This is program code thatis written in such a way that someone reading the code can understandwhat the program is doing without having to read additional documentation.One of the best ways to create self-documenting code is to usecarefully chosen constant, variable, and function names.<P><B>server</B>&nbsp;&nbsp;A computer system that supplies servicesto another computer called a client.<P><B>short</B>&nbsp;&nbsp;In Java, the <TT>short</TT> data typeis sixteen bits in length and can hold values in the range of-32,768 to 32,767.<P><B>signature</B>&nbsp;&nbsp;A function or method's declarationthat shows function's return type, name, and arguments.<P><B>signed</B>&nbsp;&nbsp;A value that can be either positive ornegative. This is the opposite of unsigned.<P><B>single inheritance</B>&nbsp;&nbsp;When a class inherits methodsand fields directly from only one base class.<P><B>spaghetti code</B>&nbsp;&nbsp;Program code that keeps jumpingfrom one place to another in the program without any apparentorganization.<P><B>standalone application</B>&nbsp;&nbsp;In the context of theJava language, an application that doesn't need to be embeddedin an HTML document. The opposite of an applet.<P><B>stream</B>&nbsp;&nbsp;A flow of data between a source deviceand a destination device. Commonly, a stream transfers data betweena disk file and memory.<P><B>structured programming</B>&nbsp;&nbsp;A style of programmingin which the programmer divides his program's source code intologically structured chunks of code.<P><B>subclass</B>&nbsp;&nbsp;A class that inherits functionalityfrom another class called the superclass (or base class).<P><B>subscript</B>&nbsp;&nbsp;A subscript is a number that identifiesthe element of an array in which a value is stored. A subscriptis sometimes called an index.<P><B>superclass</B>&nbsp;&nbsp;A class from which another classinherits functionality. Also called a base class.<P><B>symbolic constant</B>&nbsp;&nbsp;A word that represents a valuein a program. For example, the word PI could be used to representthe value 3.14 in a program.<P><B>tag</B>&nbsp;&nbsp;A command in an HTML document that identifiesthe type of document component you're defining. For example, youload and run an applet with an <TT>&lt;APPLET&gt;</TT> tag.<P><B>thread</B>&nbsp;&nbsp;A single path of execution that is asubprocess of the main process. All applications have at leastone thread, which represents the main program. An applicationcan create additional threads to handle multiple tasks concurrently.<P><B>top-down programming</B>&nbsp;&nbsp;A style of programmingthat divides tasks up into general modules. At the top level ofthe program are only the general tasks, whereas, as you work yourway deeper into the program code, the programming becomes moreand more detailed.<P><B>two-dimensional array</B>&nbsp;&nbsp;An array that's set upmuch like a table, with a specific number of columns and rows.<P><B>type cast</B>&nbsp;&nbsp;Tells Java's compiler that it's okayto convert one type of value to another.<P><B>unconditional branching</B>&nbsp;&nbsp;When program executionjumps to a new part of the program regardless of any conditions.<P><B>unicode</B>&nbsp;&nbsp;A new set of standard values for representingthe symbols used in text. The unicode character set is much largerthan the ASCII character set and allows for foreign-language symbols.<P><B>unsigned</B>&nbsp;&nbsp;A value that can only be positive.This is the opposite of signed. Unsigned numbers are not usedin Java programming.<P><B>URL</B>&nbsp;&nbsp;Stands for Uniform Resource Locator, whichis a fancy name for what is really little more than an Internetaddress.<P><B>variable</B>&nbsp;&nbsp;A value that can change as often asnecessary during the execution of a program. Variables are alwaysrepresented by symbolic names.<P><B>Web browser</B>&nbsp;&nbsp;An application used to access theInternet's World Wide Web.<P><B>World Wide Web</B>&nbsp;&nbsp;The graphical part of the Internet.<HR><HR WIDTH="100%"></P></CENTER><!-- reference library footer #1--></CENTER><IMG SRC="/images/rule.gif" WIDTH="460" HEIGHT="5" VSPACE="5"ALT="Ruler image"><br><FONT SIZE="-1">Contact <a href="mailto:reference@developer.com">reference@developer.com</a> with questions or comments.<br><a href="/legal/">Copyright 1998</a> <a href="http://www.earthweb.com" target="_top">EarthWeb Inc.</a>,  All rights reserved.<BR>PLEASE READ THE <a href="/reference/usage.html">ACCEPTABLE USAGE STATEMENT</a>.<BR>Copyright 1998 Macmillan Computer Publishing. All rights reserved.</FONT></BLOCKQUOTE><!--outer table--><TD VALIGN="TOP"><!--right side ads --><a target="resource window" href="http://adserver.developer.com/cgi-bin/accipiter/adclick.exe/AREA=DCAD1.REF" alt="Click here for more info"><img src="http://adserver.developer.com/cgi-bin/accipiter/adserver.exe/AREA=DCAD1.REF" alt="Click here for more info" height="88" width="88" border="0"></a><P><a target="resource window" href="http://adserver.developer.com/cgi-bin/accipiter/adclick.exe/AREA=DCAD2.REF" alt="Click here for more info"><img src="http://adserver.developer.com/cgi-bin/accipiter/adserver.exe/AREA=DCAD2.REF" alt="Click here for more info" height="88" width="88" border="0"></a><P></td></tr></table></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -