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

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

?? language fundamentals.txt

?? 考取JAVA證件的資料
?? 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一区二区三区免费野_久草精品视频
一区二区三区在线看| 精品卡一卡二卡三卡四在线| 一本一道波多野结衣一区二区| 日本韩国精品一区二区在线观看| 精品国产一区二区国模嫣然| 丝袜亚洲另类欧美综合| 国v精品久久久网| 日韩女优av电影| 一区二区三区高清在线| 日韩一区二区免费高清| 国产精品美女久久久久久久久 | 91免费视频网址| xnxx国产精品| 轻轻草成人在线| 欧美色精品天天在线观看视频| 日本一区二区视频在线| 美国十次综合导航| 欧美精品粉嫩高潮一区二区| 伊人夜夜躁av伊人久久| 91亚洲午夜精品久久久久久| 久久久久久久免费视频了| 蜜臀a∨国产成人精品| 欧美日韩国产精品自在自线| 亚洲综合在线免费观看| 色94色欧美sute亚洲线路一ni| 国产精品成人网| 成人一区二区三区| 欧美性三三影院| 欧美日韩一区小说| 亚洲日本va在线观看| 国产精品99久久久| 久久久国产午夜精品| 国产精品 欧美精品| 精品剧情v国产在线观看在线| 日本色综合中文字幕| 欧美一区二区三区在线看| 视频一区中文字幕国产| 欧美日韩精品电影| 日韩高清不卡一区二区| 91精品国产综合久久香蕉麻豆| 婷婷成人激情在线网| 在线成人av影院| 麻豆视频观看网址久久| 欧美大尺度电影在线| 韩国v欧美v日本v亚洲v| 精品国产髙清在线看国产毛片| 国产一区在线观看麻豆| 国产午夜精品一区二区三区视频| 国产suv精品一区二区883| 国产精品久久久久影院亚瑟| 色婷婷激情综合| 亚洲国产一区二区三区| 欧美一区二区三区精品| 91在线丨porny丨国产| 一区二区三区在线免费播放| 6080午夜不卡| 国产精品亚洲午夜一区二区三区 | 国产视频一区二区在线| www.爱久久.com| 亚洲成人在线网站| 精品国精品自拍自在线| 99精品视频一区| 免费在线观看成人| 国产精品三级av| 欧美剧情片在线观看| 国产成人自拍网| 亚洲国产日韩综合久久精品| 精品久久人人做人人爽| 91丝袜美腿高跟国产极品老师| 日产精品久久久久久久性色| 亚洲国产成人在线| 欧美午夜电影网| 国产精品一区二区在线播放 | 日韩美女一区二区三区| 波多野结衣中文字幕一区二区三区| 一区二区三区毛片| 一区二区免费视频| 日本vs亚洲vs韩国一区三区| 欧美精品一区二区在线播放| 99视频有精品| 免费成人在线影院| 亚洲精品五月天| 久久亚洲二区三区| 欧美图片一区二区三区| 成人在线视频一区二区| 秋霞电影网一区二区| 亚洲视频网在线直播| 久久免费美女视频| 欧美精品第一页| 在线观看区一区二| 成人v精品蜜桃久久一区| 麻豆极品一区二区三区| 午夜精品在线视频一区| 久草中文综合在线| 亚洲最大成人综合| 国产精品毛片久久久久久久| 日韩亚洲欧美一区二区三区| 欧美性受xxxx黑人xyx| www.色综合.com| 春色校园综合激情亚洲| 激情五月婷婷综合| 亚洲天堂网中文字| 国产校园另类小说区| 日韩午夜在线观看| 欧美日韩精品欧美日韩精品| 色综合视频一区二区三区高清| 国产·精品毛片| 国产一区91精品张津瑜| 久久9热精品视频| 麻豆精品一区二区av白丝在线| 日韩中文字幕麻豆| 日日夜夜精品免费视频| 亚洲国产欧美日韩另类综合| 夜夜嗨av一区二区三区中文字幕| **欧美大码日韩| 亚洲精品国产高清久久伦理二区| 中文字幕日韩精品一区| 1024成人网| 亚洲精品一卡二卡| 亚洲国产一区二区在线播放| 亚洲一区二区三区四区在线观看 | 5858s免费视频成人| 久久久久久久久一| 制服丝袜在线91| 国产精品久久久久影视| 中文字幕一区二区三区精华液| 国产精品对白交换视频| 综合网在线视频| 亚洲国产中文字幕在线视频综合| 亚洲va在线va天堂| 首页综合国产亚洲丝袜| 日韩av网站免费在线| 精品亚洲免费视频| 不卡大黄网站免费看| 91黄色免费网站| 56国语精品自产拍在线观看| 精品国产乱码久久久久久久久 | 亚洲国产精品人人做人人爽| 午夜久久久久久久久| 美美哒免费高清在线观看视频一区二区 | 丝袜诱惑制服诱惑色一区在线观看 | 日本vs亚洲vs韩国一区三区| 蜜臀va亚洲va欧美va天堂| 免费观看一级特黄欧美大片| 国产自产高清不卡| 99综合影院在线| 欧美丰满一区二区免费视频| 欧美不卡在线视频| 一区二区中文字幕在线| 亚洲国产精品自拍| 国产精品99久久不卡二区| 91网站最新网址| 欧美一区二区成人6969| 欧美国产禁国产网站cc| 亚洲成人av中文| 国产成人精品亚洲777人妖| 91久久香蕉国产日韩欧美9色| 日韩精品中文字幕在线一区| 国产精品久久久久久久久果冻传媒| 亚洲国产另类av| 成人动漫中文字幕| 日韩三级视频在线观看| 亚洲日本在线视频观看| 久久福利资源站| 欧美亚男人的天堂| 中文字幕欧美日本乱码一线二线| 香蕉乱码成人久久天堂爱免费| 国产成人啪午夜精品网站男同| 欧美日韩一区二区三区不卡| 亚洲国产精品t66y| 青青草97国产精品免费观看| 99视频精品全部免费在线| 欧美变态凌虐bdsm| 亚洲国产精品欧美一二99| 成人avav影音| 久久久久国产精品厨房| 免费看欧美美女黄的网站| 色8久久精品久久久久久蜜| 国产婷婷色一区二区三区| 美日韩黄色大片| 91 com成人网| 亚洲制服丝袜一区| 91在线精品一区二区| 久久精品综合网| 国产一区二区三区黄视频 | 国产精品久久午夜夜伦鲁鲁| 激情成人午夜视频| 欧美一卡二卡三卡| 午夜精品久久久久久| 欧美在线一二三四区| 亚洲色图视频网| 日韩电影一二三区| 国产制服丝袜一区| 91精品午夜视频| 日本中文字幕一区二区有限公司| 色婷婷综合久久久中文一区二区| 国产精品乱码人人做人人爱| 国产高清视频一区| 久久品道一品道久久精品| 黄一区二区三区|