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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? language fundamentals.txt

?? 這是一本很好的Java開發(fā)書籍
?? 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.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线视频你懂得| 国产日产精品一区| 精品欧美一区二区久久| 中文字幕一区二区在线播放| 亚洲国产日韩在线一区模特| 国产精品影视在线| 欧美巨大另类极品videosbest| 久久在线免费观看| 日本欧美在线观看| 在线观看av不卡| 中文字幕中文字幕在线一区| 另类成人小视频在线| 欧美三级电影一区| 1区2区3区精品视频| 国产又粗又猛又爽又黄91精品| 欧美日韩国产影片| 一区二区三区中文免费| 成+人+亚洲+综合天堂| 欧美成人精品3d动漫h| 一区二区三区在线观看国产| 欧美色图12p| 欧美在线一区二区三区| 久久久国产午夜精品| 青草av.久久免费一区| 精品视频一区二区不卡| 亚洲欧美国产高清| 91蜜桃传媒精品久久久一区二区| 国产喷白浆一区二区三区| 国内精品伊人久久久久av影院| 欧美精品日韩一本| 舔着乳尖日韩一区| 欧美日韩在线精品一区二区三区激情 | 国产色一区二区| 捆绑变态av一区二区三区| 欧美精品 日韩| 午夜精品久久久久久久99水蜜桃 | 国产东北露脸精品视频| 精品va天堂亚洲国产| 久久99国产精品久久| 精品对白一区国产伦| 久久99日本精品| 久久亚洲精精品中文字幕早川悠里| 蜜臀精品久久久久久蜜臀 | 性做久久久久久久免费看| 欧美三级日韩在线| 日韩av在线发布| 欧美mv日韩mv国产网站| 国产麻豆9l精品三级站| 国产欧美日韩中文久久| 成人免费高清在线| 一区二区三区四区高清精品免费观看 | 日韩三级中文字幕| 久久99深爱久久99精品| 久久久五月婷婷| 成人免费毛片高清视频| 一区二区三区在线视频播放| 欧美日韩在线播| 免费观看久久久4p| 中文字幕不卡在线| 色一情一乱一乱一91av| 日韩福利视频导航| 久久久精品综合| 色一区在线观看| 麻豆91精品视频| 国产精品久久久一本精品 | 国产原创一区二区三区| 中文字幕一区av| 欧美日韩在线不卡| 国产精品一区二区免费不卡| 亚洲三级久久久| 日韩片之四级片| 99久久婷婷国产综合精品| 亚洲成人综合视频| 欧美国产欧美综合| 欧美人与性动xxxx| 国产黄色成人av| 丝袜诱惑亚洲看片| 国产精品天美传媒| 日韩一区二区三区免费看 | 国产精品美女一区二区三区 | 国产专区欧美精品| 亚洲最新在线观看| 精品国产免费久久| 精品视频免费在线| 丁香六月久久综合狠狠色| 午夜精品久久久久久久蜜桃app| 亚洲一卡二卡三卡四卡五卡| 欧美v亚洲v综合ⅴ国产v| 色婷婷av一区二区三区软件 | 欧美xxxx在线观看| 欧美日韩日本视频| 成人app软件下载大全免费| 蜜桃视频在线一区| 亚洲国产sm捆绑调教视频| 国产日韩欧美一区二区三区综合| 欧美日韩亚洲综合在线| 94色蜜桃网一区二区三区| 国产一区二区精品久久91| 日本va欧美va欧美va精品| 夜夜精品浪潮av一区二区三区| 国产精品免费视频网站| 久久欧美一区二区| 欧美一级高清大全免费观看| 欧美性色综合网| 在线一区二区三区四区五区| 白白色亚洲国产精品| 国产二区国产一区在线观看| 国产在线观看一区二区| 美女视频一区二区| 免费国产亚洲视频| 日本亚洲免费观看| 五月天一区二区三区| 亚洲成人精品在线观看| 一片黄亚洲嫩模| 一区二区三区四区国产精品| 亚洲男人的天堂在线观看| 中文字幕一区二区不卡| 亚洲人成网站精品片在线观看| 国产精品免费视频网站| 中文字幕一区二区三区视频| 国产精品激情偷乱一区二区∴| 中文在线一区二区| 国产精品久久久久久久午夜片| 国产精品美日韩| 亚洲人成网站在线| 亚洲第一狼人社区| 视频一区欧美精品| 老司机一区二区| 国产精品一区二区黑丝 | 麻豆国产91在线播放| 另类综合日韩欧美亚洲| 极品少妇xxxx精品少妇偷拍| 国产一区二区视频在线| 成人激情黄色小说| 91国产免费观看| 欧美久久一二区| 2020日本不卡一区二区视频| 日本一区二区三区久久久久久久久不 | 亚洲午夜激情av| 日本亚洲天堂网| 国产高清成人在线| 色综合久久天天| 5858s免费视频成人| 中文字幕字幕中文在线中不卡视频| 亚洲免费三区一区二区| 日韩高清一级片| 国产69精品久久久久毛片| 91久久免费观看| 91精品国产综合久久久久久久久久| 日韩欧美区一区二| 国产精品电影一区二区| 亚洲不卡一区二区三区| 国产精品一线二线三线精华| 日本高清不卡在线观看| 日韩精品中文字幕一区二区三区| 欧美国产成人精品| 香蕉影视欧美成人| 国产成人精品亚洲日本在线桃色 | 国产色产综合产在线视频 | 亚洲欧美自拍偷拍色图| 日韩专区欧美专区| 99久久精品国产网站| 日韩精品最新网址| 亚洲精品高清在线观看| 韩国v欧美v亚洲v日本v| 欧美影片第一页| 亚洲国产精品黑人久久久| 视频一区欧美精品| 91丨九色丨蝌蚪丨老版| 欧美mv日韩mv亚洲| 亚洲高清不卡在线观看| 成人免费看黄yyy456| 精品欧美一区二区久久| 亚洲图片欧美综合| 99久久伊人久久99| xfplay精品久久| 成人av免费在线播放| 日韩一卡二卡三卡四卡| 亚洲第一成人在线| 91啪在线观看| 国产亚洲精品bt天堂精选| 麻豆成人久久精品二区三区小说| 欧美在线观看视频一区二区三区| 国产精品久久久久久久裸模| 久久爱www久久做| 日韩欧美资源站| 丝袜美腿亚洲色图| 欧美三级资源在线| 日韩美女久久久| 99精品视频免费在线观看| 日本一区二区综合亚洲| 国产乱国产乱300精品| 精品国产乱子伦一区| 蜜芽一区二区三区| 欧美一级电影网站| 免费日韩伦理电影| 日韩精品最新网址| 精品中文av资源站在线观看| 欧美mv和日韩mv国产网站| 蜜臀久久99精品久久久画质超高清|