JavaÃæÊÔÌâÕûÀí
Ò»¡¢
Java
»ù´¡
µÚ
01
Ì⣺
×÷ÓÃÓò
public,private,protected,
ÒÔ¼°²»Ð´Ê±µÄÇø±ð
µÚ
02
Ì⣺
Anonymous Inner Class (
ÄäÃûÄÚ²¿Àà
)
ÊÇ·ñ¿ÉÒÔ
extends(
¼Ì³Ð
)
ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔ
implements(
ʵÏÖ
)interface(
½Ó¿Ú
)
µÚ
03
Ì⣺
Static Nested Class
ºÍ
Inner Class
µÄ²»Í¬
µÚ
04
Ì⣺
&
ºÍ
&&
µÄÇø±ð
µÚ
05
Ì⣺
Collection
ºÍ
Collections
µÄÇø±ð
µÚ
06
Ì⣺
ʲôʱºòÓÃ
assert
µÚ
07
Ì⣺
String s = new
String("xyz");
´´½¨Á˼¸¸ö
String Object
µÚ
08
Ì⣺
Math.round(11.5)
µÈ춶àÉÙ
? Math.round(-11.5)
µÈ춶àÉÙ
µÚ
09
Ì⣺
short s1 = 1; s1 = s1 + 1;
ÓÐʲô´í
? short s1 = 1; s1 += 1;
ÓÐʲô´í
µÚ
10
Ì⣺
Java
ÓÐûÓÐ
goto
µÚ
11
Ì⣺
Êý×éÓÐûÓÐ
length()
Õâ¸ö·½·¨
? String
ÓÐûÓÐ
length()
Õâ¸ö·½·¨
µÚ
12
Ì⣺
Overload
ºÍ
Override
µÄÇø±ð¡£
Overloaded
µÄ·½·¨ÊÇ·ñ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ
µÚ
13
Ì⣺
Set
ÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖظ´Óë·ñÄØ
?
ÊÇÓÃ
==
»¹ÊÇ
equals()?
ËüÃÇÓкÎÇø±ð
µÚ
14
Ì⣺
¸øÎÒÒ»¸öÄã×î³£¼ûµ½µÄ
runtime exception
µÚ
15
Ì⣺
error
ºÍ
exception
ÓÐʲôÇø±ð
µÚ
16
Ì⣺
List, Set, Map
ÊÇ·ñ¼Ì³Ð×Ô
Collection
½Ó¿Ú
µÚ
17
Ì⣺
abstract class
ºÍ
interface
ÓÐʲôÇø±ð
µÚ
18
Ì⣺
abstract
µÄ
method
ÊÇ·ñ¿ÉͬʱÊÇ
static,
ÊÇ·ñ¿ÉͬʱÊÇ
native
£¬ÊÇ·ñ¿ÉͬʱÊÇ
synchronized
µÚ
19
Ì⣺
½Ó¿ÚÊÇ·ñ¿É¼Ì³Ð½Ó¿Ú
?
³éÏóÀàÊÇ·ñ¿ÉʵÏÖ
(implements)
½Ó¿Ú
?
³éÏóÀàÊÇ·ñ¿É¼Ì³ÐʵÌåÀà
(concrete class)
µÚ
20
Ì⣺
¹¹ÔìÆ÷
Constructor
ÊÇ·ñ¿É±»
override
µÚ
21
Ì⣺
ÊÇ·ñ¿ÉÒԼ̳Ð
String
Àà
µÚ
22
Ì⣺
try {}
ÀïÓÐÒ»¸ö
return
Óï¾ä£¬ÄÇô½ô¸úÔÚÕâ¸ö
try
ºóµÄ
finally {}
ÀïµÄ
code
»á²»»á±»Ö´ÐУ¬Ê²Ã´Ê±ºò±»Ö´ÐУ¬ÔÚ
return
Ç°»¹ÊǺó
µÚ
23
Ì⣺
ÓÃ×îÓÐЧÂʵķ½·¨Ëã³ö
2
³ËÒÔ
8
Ïà¹ØÎĵµ£º
½ñÈÕÔÚÍøÉÏżȻÅöµ½Ò»¸ö³õѧÕßµÄjavaÌâÄ¿£¬¾Í³¢ÊÔµÄ×öÁËһϣ¬µ«Ã»Ïëµ½Ò»×ö¾ÍÊǽӽüÒ»¸öÖÓÍ·°¡£¬¿´À´javaѧϰµÄ·ÉÏ»¹ÊÇ·ÂþÂþÙâÐÞÔ¶°¡¡£
ÌâÄ¿ÈçÏ£º
±àдһ¸öJava Application ³ÌÐò£¬½ÓÊÜÓû§ÊäÈëµÄÒ»¸ö¸¡µãÊý£¬½«ÆäµÄÕûÊý²¿·ÖºÍСÊý²¿·Ö·Ö±ðÊä³ö¡£
È磺ÊäÈë56.6 £¬ÔòÓÐ
¡¡¡¡¡¡¡¡¡¡¡¡ÕûÊý²¿·Ö£º56
¡¡¡¡¡¡¡¡¡¡¡¡ ......
http://techpool.javaeye.com/blog/486326
2009-10-12
JAVAÈçºÎÖ´ÐÐDOSÃüÁî
JAVAÈçºÎÖ´ÐÐDOSÃüÁî
ÏÂÃæÊÇÒ»ÖֱȽϵäÐ͵ijÌÐòģʽ£º
¡¡¡¡
...
¡¡¡¡Process process = Runtime.getRuntime().exec(".\\p.exe");
¡¡¡¡process.waitfor( );
¡¡¡¡... ......
javaÖеÄSynthÍâ¹Û
Synth£¬ËüÊÇÒ»¸öÍêÕûµÄÍâ¹Û£¬¶ø²»ÊÇÒ»¸öÖ÷Ì⣬ËüÕë¶ÔµÄ²¢²»ÊdzÌÐòÔ±£¬¶øÊǽçÃæÉè¼ÆÈËÔ±£¬ÈÃËûÃDz»±ØÕÆÎÕJava ֪ʶ±ãÄܹ»½øÐÐÏàÓ¦½çÃæµÄÑ¡Ôñ¶¨ÖÆ¡£²ÉÓÃÁËSynth ºó£¬ÎÒÃDz»ÄÜ´ÓÏÖÓÐÍâ¹Û»òÖ÷ÌâÅÉÉú×ÓÀà¡¢ÐÞ¸Ä×ÖÌå»òÑÕÉ«£¬¶øÊÇͨ¹ýתÔز»Í¬µÄXML ÎļþÒÔ´ïµ½¶Ô ......
ʹÓÃÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ£¬¾ÍÓ¦¸ÃרҵµØʹÓÃËü¡£±¾ÎÄÊÇIBM developerWorksÖеÄһƪÎÄÕ£¬ËüÃèÊöµÄ¶¼ÊÇJava±à³ÌÖеÄϸ½ÚÎÊÌ⣬¾¡¹ÜÈç´Ë£¬»¹ÊÇÖµµÃ´ó¼ÒÍæζһ·¬£¬ÖÁÉÙÎÒ×÷ΪһÃûÀÏÄñ»¹ÊÇ´ÓÖÐÊÜÒæÁË¡£(2010.02.09×îºó¸üÐÂ)
ѧϰһÖÖеijÌÐòÉè¼ÆÓïÑÔ±ÈѧϰһÖÖеĿÚÍ·ÓïÑÔÒªÈÝÒס£µ«ÊÇ£¬ÔÚÕâÁ½ÖÖŬÁ¦ÖУ¬¶¼Ð ......