亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? language fundamentals.txt

?? 一個新的采集工具 一個新的采集工具 一個新的采集工具
?? TXT
字號:
作者:jeru
email: jeru@163.net
日期:7/3/2001 9:54:36 AM
4) Language Fundamentals 
Objective 1) 
Identify correctly constructed package declarations import statements class declarations (of all forms including inner classes) interface declarations and implementations (for java.lang.Runnable or other interface described in the test) method declarations (including the main method that is used to start execution of a class) variable declarations and identifiers.
1.	Source file’s elements (in order)
a.	Package declaration
b.	Import statements
c.	Class definitions
2.	Importing packages doesn’t recursively import sub-packages.
3.	Sub-packages are really different packages, happen to live within an enclosing package. Classes in sub-packages cannot access classes in enclosing package with default access.
4.	Comments can appear anywhere. Can’t be nested.(No matter what type of comments)
5.	At most one public class definition per file. This class name should match the file name. If there are more than one public class definitions, compiler will accept the class with the file’s name and give an error at the line where the other class is defined.
6.	It’s not required having a public class definition in a file. Strange, but true. J In this case, the file’s name should be different from the names of classes and interfaces (not public obviously). 
7.	A file can contain multiple non public classes, but bear in mind that this will produce separate .class output files for each class. 
8.	Even an empty file is a valid source file.
9.	In order to be run by JVM, a class should have a main method with the following signature.
public static void main(String args[])
static public void main(String[] s)
10.	args array’s name is not important. args[0] is the first argument. args.length gives no. of arguments.
11.	main method can be overloaded. 
12.	main method can be final.
13.	A class with a different main signature or w/o main method will compile. But throws a runtime error.
14.	A class without a main method can be run by JVM, if its ancestor class has a main method. (main is just a method and is inherited)

15.	An identifier must begin with a letter, dollar sign ($) or underscore (_). Subsequent characters may be letters, $, _ or digits.
16.	Currency symbols are treated as any other alphabetic character for the sake of naming identifiers (e.g., £347_00, µ18, and ¥Price are acceptable).
17.	An identifier cannot have a name of a Java keyword. Embedded keywords are OK. true, false and null are literals (not keywords), but they can’t be used as identifiers as well.  
18.	const and goto are reserved words, but not used.
19.	Unicode characters can appear anywhere in the source code. The following code is valid.
	ch\u0061r a = 'a';
	char \u0062 = 'b';
	char c = '\u0063';
19. \u000a and \u000d will give compile error, use \n and \r instead.

Interfaces
·	All methods in an interface are implicitly public, abstract, and never static.(cannot has other modifier)
·	All variables in an interface are implicitly static, public, final. They cannot be transient or volatile. A class can shadow the variables it inherits from an interface, with its own variables.
·	A top-level interface itself cannot be declared as static or final since it doesn’t make sense.
·	A nested interface is any interface whose declaration occurs within the body of another class or interface.  In class, it can be private, but in interface, it has to be public.
·	A compile-time error occurs if an interface has the same simple name as any of its enclosing classes or interfaces.
·	Classes cannot implement an interface method with a static method, and the method has to be public.
·	If an interface specifies an exception list for a method, then the class implementing the interface need not declare the method with the exception list. But if the interface didn’t specify any exception list for a method, then the class cannot throw any exceptions.
·	A class can implement two interfaces that have a method with the same signature or variables with the same name.
·	An interface can extends more than one interfaces.
·	interfaces are not instantiated with new, but you can declare as,
test t = new A(); // class A  implements test

Objective 2) 
State the correspondence between index values in the argument array passed to a main method and command line arguments.
This objective can catch out the more experienced C/C++ programmer because the first element of argv[] is the first string after the name of the program on the command line.

Objective 3) 
Identify all Java programming language keywords.
A new keyword:  strictfp
true, false and null are literals (not keywords), but they can’t be used as identifiers as well.

Abstract		boolean		break		byte		case		catch 
Char		class		const		continue		default		do   
Double		else		extends		final		finally		float   
For		goto		if 		implements	import		instanceof   
Int		interface		long 		native		new 		package   
Private		protected 	public		return 		short		static  
super 		switch		synchronized 	this 		throw 		throws   
transient		try 		void 		volatile		while

Objective4) 
State the effect of using a variable or array element of any kind when no explicit assignment has been made to it.
The default values for numeric types is zero, a boolean is false and an object reference is the only type that defaults to a null.

The value of the elements of an array of any base type will always be initialised to a default value, wherever the array is defined.

Objective 5) 
State the range of all primitive data types and declare literal values for String and all primitive types using all permitted formats, bases and representations.
1.	Java has 8 primitive data types.

Data Type	Size (bits)	Initial Value	Min Value	Max Value
boolean	1	false	 false	true
byte	8	0	-128 (-27)	127 (27 – 1)
short	16	0	-215 	215 - 1
char	16	‘\u0000’	‘\u0000’ (0)	‘\uFFFF’ (216 – 1)
int	32	0	-231 	231 - 1
long	64	0L	-263 	263 - 1
float	32	0.0F	1.4E-45	3.4028235E38
double	64	0.0	4.9E-324	1.7976931348623157E308

2.	All numeric data types are signed. char is the only unsigned integral type.
3.	The char type can be used to denote a Unicode character. Unicode is an alternative to ASCII that stores characters in 2 bytes instead of the 1 byte of ASCII(7 bits). This gives you 65K worth of characters,
4.	Octal literals begin with zero. Hex literals begin with 0X or 0x. 
5.	Char literals are single quoted characters or unicode values (begin with \u).
6.	A number is by default an int literal, a decimal number is by default a double literal.
7.	1E-5d is a valid double literal, E2d is not (since it starts with a letter, compiler thinks that it’s an identifier)
8.	Primitives are passed by value.
9.	Objects (references) are passed by reference. The object reference itself is passed by value. So, it can’t be changed. But, the object can be changed via the reference.


·	Every primitive type has a wrapper class (some names are different – Integer, Boolean, Character)
·	Wrapper class objects are immutable.
·	All Wrapper classes are public, final, seriazible.
·	Integer, Long, Byte, Short, Double and Float extends java.lang.Number implements Comparable.
·	Character implements Comparable, Boolean doesn’t.
·	All wrapper classes, except Character, have a constructor accepting string. A Boolean object, created by passing a string, will have a value of false for any input other than “true” (case doesn’t matter).
·	Numeric wrapper constructors will throw a NumberFormatException, if the passed string is not a valid number. (empty strings and null strings also throw this exception)
·	equals also tests the class of the object, so even if an Integer object and a Long object are having the same value, equals will return false.
·	NaN’s can be tested successfully with equals method. 
Float f1 = new Float(Float.NaN);
Float f2 = new Float(Float.NaN);
System.out.println( ""+ (f1 == f2)+"  "+f1.equals(f2)+ "  "+(Float.NaN == Float.NaN) );
The above code will print false true false.
·	Numeric wrappers have 6 methods to return the numeric value – intValue(), longValue(), etc.
·	valueOf method parses an input string (optionally accepts a radix in case of int and long) and returns a new instance of wrapper class, on which it was invoked. It’s a static method. For empty/invalid/null strings it throws a NumberFormatException. For null strings valueOf in Float and Double classes throw NullPointerException.
·	parseInt and parseLong return primitive int and long values respectively, parsing a string (optionally a radix). Throw a NumberFormatException for invalid/empty/null strings.
·	Numeric wrappers have overloaded toString methods, which accept corresponding primitive values (also a radix in case of int,long) and return a string.
·	Void class represents void primitive type. It’s not instantiable. Just a placeholder class.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91视频xxxx| 日本v片在线高清不卡在线观看| 国产69精品一区二区亚洲孕妇| 日韩精品一区二区三区老鸭窝| 调教+趴+乳夹+国产+精品| 555夜色666亚洲国产免| 午夜精品一区二区三区三上悠亚| 在线观看91视频| 午夜久久久影院| 精品处破学生在线二十三| 国产激情视频一区二区在线观看 | 色综合一区二区三区| 最好看的中文字幕久久| 91老师国产黑色丝袜在线| 亚洲午夜私人影院| 日韩三级免费观看| 风间由美一区二区三区在线观看 | 一区二区三区四区五区视频在线观看| 91视视频在线观看入口直接观看www| 亚洲免费电影在线| 欧美一区二区免费视频| 国产精品1区二区.| 亚洲男人的天堂在线aⅴ视频| 欧美日韩一区二区在线观看视频 | 麻豆国产精品视频| 久久久久99精品一区| 色综合天天综合网天天狠天天 | 一区2区3区在线看| 欧美成人一区二区三区片免费| 国产.欧美.日韩| 亚洲综合视频在线| 久久综合九色欧美综合狠狠| 99久久精品国产麻豆演员表| 日韩中文字幕亚洲一区二区va在线| 欧美xxxxx牲另类人与| av亚洲精华国产精华精华 | 日韩高清不卡在线| 国产精品狼人久久影院观看方式| 欧美日韩dvd在线观看| 春色校园综合激情亚洲| 日韩精品一二区| 国产精品久久久久久久久免费樱桃 | 国产亚洲欧美中文| 国产成人免费视频网站| 亚洲欧美国产三级| 日韩精品一区二区三区在线观看| av在线不卡免费看| 精品一二三四区| 亚洲一区二区视频| 久久精品亚洲乱码伦伦中文| 欧美日韩成人综合在线一区二区| 成人激情小说网站| 激情丁香综合五月| 亚洲在线观看免费| 国产情人综合久久777777| 91精品国产欧美一区二区18 | 日韩欧美中文一区| 色综合夜色一区| 国产乱码一区二区三区| 日本成人中文字幕| 日本中文字幕一区二区视频| 欧美精品一区二区三| 欧美日韩亚洲综合| 91麻豆国产在线观看| 国产九九视频一区二区三区| 免费人成在线不卡| 亚洲国产人成综合网站| 亚洲女同一区二区| 中文字幕一区二区三区在线不卡 | 宅男在线国产精品| 欧美亚洲综合久久| 色婷婷综合久久久中文字幕| eeuss影院一区二区三区| 国产成人自拍网| 国产精品一区专区| 国产麻豆午夜三级精品| 激情国产一区二区| 精品一区二区三区的国产在线播放| 日韩国产欧美在线视频| 日韩在线卡一卡二| 美日韩一区二区| 免费成人在线观看| 久久99国产精品尤物| 九九九久久久精品| 国产精品一线二线三线精华| 国产伦精一区二区三区| 国产成人精品三级| 成人福利视频网站| 成人av电影在线| 欧美mv日韩mv国产网站| 91精品国产综合久久精品app| 欧美精品丝袜中出| 欧美一卡2卡3卡4卡| 日韩一级欧美一级| 精品成人佐山爱一区二区| 久久精品一级爱片| 中文字幕永久在线不卡| 日韩伦理av电影| 亚洲va欧美va国产va天堂影院| 天天色天天操综合| 韩国女主播一区| 成人网男人的天堂| 欧洲人成人精品| 日韩一区二区在线免费观看| 久久亚洲综合av| 亚洲欧美综合另类在线卡通| 亚洲韩国一区二区三区| 日本sm残虐另类| 国产成人av电影免费在线观看| 91网站最新网址| 91精品国产手机| 中文字幕第一页久久| 亚洲一区在线观看网站| 九九**精品视频免费播放| 成人国产精品免费观看动漫| 欧美色精品在线视频| 久久影院午夜片一区| 亚洲女同女同女同女同女同69| 午夜免费久久看| 国产99精品在线观看| 欧美吞精做爰啪啪高潮| 久久久久青草大香线综合精品| 亚洲视频电影在线| 久久精品国产亚洲aⅴ| gogo大胆日本视频一区| 欧美一二三在线| 亚洲私人影院在线观看| 久久 天天综合| 欧美性感一区二区三区| 久久久综合视频| 亚洲成人精品一区| 成人免费高清在线| 日韩天堂在线观看| 亚洲自拍偷拍欧美| 亚洲一区二区三区四区在线免费观看 | 国产欧美精品一区二区三区四区 | 最新国产成人在线观看| 日本视频免费一区| 91看片淫黄大片一级| 精品久久国产老人久久综合| 一区二区三区免费在线观看| 国产一区二区三区| 欧美四级电影在线观看| 国产精品久久久久久久久久久免费看| 免费人成黄页网站在线一区二区| 91成人看片片| 亚洲私人影院在线观看| 国产不卡高清在线观看视频| 日韩欧美国产三级| 亚洲国产精品久久一线不卡| 97精品超碰一区二区三区| 久久精品视频在线免费观看| 六月丁香婷婷久久| 欧美日韩国产中文| 亚洲精品成人在线| 9i看片成人免费高清| 国产日本欧洲亚洲| 国产精品一卡二卡| 精品乱人伦一区二区三区| 国产精品一区免费在线观看| 欧美日韩中文字幕一区二区| 亚洲日本一区二区三区| 成人理论电影网| 国产婷婷色一区二区三区| 国产麻豆成人传媒免费观看| 欧美xxxxxxxx| 精品一区二区在线免费观看| 717成人午夜免费福利电影| 亚洲成人资源在线| 欧美三级在线视频| 亚洲www啪成人一区二区麻豆| 欧美日韩精品一区二区天天拍小说 | 激情综合网激情| 日韩一区二区三区免费观看| 天天操天天干天天综合网| 欧美精品一卡二卡| 日韩高清欧美激情| 欧美一区二区视频在线观看2020| 日本免费新一区视频| 日韩一卡二卡三卡四卡| 久久99精品视频| 久久久精品黄色| 成人av在线影院| 亚洲免费在线观看视频| 在线看一区二区| 石原莉奈在线亚洲二区| 日韩欧美在线不卡| 国产一区二区h| 亚洲天堂成人在线观看| 色综合久久综合网| 亚洲一级片在线观看| 337p亚洲精品色噜噜噜| 国模大尺度一区二区三区| 国产欧美日韩精品a在线观看| av中文字幕一区| 亚洲高清不卡在线观看| 日韩欧美一区二区不卡| 粗大黑人巨茎大战欧美成人| 亚洲精品成人天堂一二三| 91精品久久久久久久久99蜜臂|