Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVAÃæÊÔÒ»

 ÏÂÒÔjavaΪÀý×Ó˵Ã÷һЩ×Ô¼ºÓöµ½µÄ£º
·ÃÎÊ¿ØÖÆ:
private ˽ÓеÄ
protected Êܱ£»¤µÄ
public ¹«¹²µÄ
Àà¡¢·½·¨ºÍ±äÁ¿ÐÞÊηû
abstract ÉùÃ÷³éÏó
class Àà
extends À©ÔÊ,¼Ì³Ð
final ÖÕ¼«,²»¿É¸Ä±äµÄ
implementsʵÏÖ
interface ½Ó¿Ú
native ±¾µØ
new ÐÂ,´´½¨
static ¾²Ì¬ 
strictfp Ñϸñ,¾«×¼
synchronized Ïß³Ì,ͬ²½
transient ¶ÌÔÝ
volatile Ò×ʧ
³ÌÐò¿ØÖÆÓï¾ä
break Ìø³öÑ­»·
continue ¼ÌÐø
return ·µ»Ø
do ÔËÐÐ
while Ñ­»·
if Èç¹û
else ·´Ö®
for Ñ­»·
instanceof ʵÀý
switch ¿ª¹Ø
case ·µ»Ø¿ª¹ØÀïµÄ½á¹û
default ĬÈÏ
´íÎó´¦Àí
catch ´¦ÀíÒì³£
finally ÓÐûÓÐÒì³£¶¼Ö´ÐÐ
throw Å׳öÒ»¸öÒì³£¶ÔÏó
throws ÉùÃ÷Ò»¸öÒì³£¿ÉÄܱ»Å׳ö
try ²¶»ñÒì³£
°üÏà¹Ø
import ÒýÈë
package °ü
»ù±¾ÀàÐÍ
boolean ²¼¶ûÐÍ
byte ×Ö½ÚÐÍ
char ×Ö·ûÐÍ
double Ë«¾«¶È,
float ¸¡µã
int ÕûÐÍ
long ³¤ÕûÐÍ
short ¶ÌÕûÐÍ
null ¿Õ
true Õæ
false ¼Ù
±äÁ¿ÒýÓÃ
super ¸¸Àà,³¬Àà
this ±¾Àà
void ÎÞ·µ»ØÖµ
ÎÞconst ºÍ goto, ²»¹ýÕâÁ½¸ö´ÊÊDZ£Áô×Ö¶ø²»Êǹؼü´Ê¡£±£Áô×ÖÊÇϵͳ±£ÁôÆðÀ´²»¸øÓû§Ê¹Óã¬ÏµÍ³×Ô¼ºÒ²²»»áÓÃ
ÎÞfriendlyºÍsizeofŶ£¡£¡£¡
±êʶ·û±äÁ¿,ÀàÓë·½·¨¶¼ÐèÒªÒ»¶¨µÄÃû³Æ,ÎÒÃǽ«ÕâÖÖÃû³Æ½Ð×ö±êʶ·û.javaÖжԱêʶ·ûÓÐÒ»¶¨µÄÏÞÖÆ.Ê×ÏÈ:ËùÓеıêʶ·ûµÄÊ××Ö·û±ØÐëÊÇ×Öĸ£¨´óСд£©.Ï»®Ïߣ߻òÃÀÔª·û$;Æä´Î±êʾ·ûÊÇÓÉÊý×Ö£¨0--9£©,ËùÓдÓa--zµÄ´óд×Öĸ.a--zµÄСд×ÖĸÓëÏ»®Ïߣß.ÃÀÔª·û$ÓëËùÓÐÔÚÊ®Áù½øÖÆ0xc0Ç°µÄ asciiÂëµÈ¹¹³É;µÚÈý×¢Òâ±íʾ·û²»ÄÜʹÓÃϵͳ±£ÁôµÄ¹Ø¼ü×Ö×ö±êʾ·û.
Java¹Ø¼ü×Öthis¡¢superʹÓÃ×ܽá
 Ò»¡¢this
        Java¹Ø¼ü×ÖthisÖ»ÄÜÓÃÓÚ·½·¨·½·¨ÌåÄÚ¡£µ±Ò»¸ö¶ÔÏó´´½¨ºó£¬JavaÐéÄâ»ú£¨JVM£©¾Í»á¸øÕâ¸ö¶ÔÏó·ÖÅäÒ»¸öÒýÓÃ×ÔÉíµÄÖ¸Õ룬Õâ¸öÖ¸ÕëµÄÃû×Ö¾ÍÊÇthis¡£Òò´Ë£¬thisÖ»ÄÜÔÚÀàÖеķǾ²Ì¬·½·¨ÖÐʹÓ㬾²Ì¬·½·¨ºÍ¾²Ì¬µÄ´úÂë¿éÖоø¶Ô²»ÄܳöÏÖthis£¬ÕâÔÚ“Java¹Ø¼ü×Östatic¡¢finalʹÓÃ×ܽá”Ò»ÎÄÖиø³öÁËÃ÷È·½âÊÍ¡£²¢ÇÒthisÖ»ºÍÌض¨µÄ¶ÔÏó¹ØÁª£¬¶ø²»ºÍÀà¹ØÁª£¬Í¬Ò»¸öÀàµÄ²»Í¬¶ÔÏóÓв»Í¬µÄthis¡£ÏÂÃæ¸ø³öÒ»¸öʹÓÃthisµÄ×ÛºÏʵÀý£¬ÒÔ±ã˵Ã÷ÎÊÌ⣺
package org.leizhimin;
public class Test6 {
 private int number;
 private String username;
 private String password;
 private int x = 100;
 public Test6(


Ïà¹ØÎĵµ£º

JAVAÁ¬½ÓÊý¾Ý¿â´óÈ«

 oracle
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@localhost:1521:orcl";
String user="scott";
String password="tiger";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_S ......

java ´úÂëÓÅ»¯

 1.1 ²»ÓÃnew¹Ø¼ü´Ê´´½¨ÀàµÄʵÀý
ÓÃnew¹Ø¼ü´Ê´´½¨ÀàµÄʵÀýʱ£¬¹¹Ô캯ÊýÁ´ÖеÄËùÓй¹Ô캯Êý¶¼»á±»×Ô¶¯µ÷Óᣵ«Èç¹ûÒ»¸ö¶ÔÏóʵÏÖÁËCloneable½Ó¿Ú£¬ÎÒÃÇ¿ÉÒÔµ÷ÓÃËüµÄclone()·½·¨¡£clone()·½·¨²»»áµ÷ÓÃÈκÎÀ๹Ô캯Êý¡£
ÔÚʹÓÃÉè¼Æģʽ£¨Design Pattern£©µÄ³¡ºÏ£¬Èç¹ûÓÃFactoryģʽ´´½¨¶ÔÏó£¬Ôò¸ÄÓÃclone()·½·¨´´½¨Ðµ ......

java±Ê¼Ç

½ñÌìÖØÐÂÕûÀíµçÄÔ£¬ÕÒµ½Ò»¸öÎļþ£¬¿´ÁËÏÂÈÕÆÚ£¨2006.11.3£© £¬Å²»Ð¡ÐÄÔÙ¶ªÁË£¬´æµ½ÍøÉÏÀ´É¹É¹¡£
 ¹Ø¼ü×ÖÓֳƱ£Áô×Ö£¬ÊÇ Java ÓïÑԹ涨ÁËÌض¨º¬ÒåµÄ±êʶ·û¡£Óû§Ö»ÄÜ°´ÕÕϵͳ¹æ¶¨µÄ·½Ê½Ê¹Ó㬲»ÄÜ×ÔÐж¨Òå¡£¹Ø¼ü×ÖÒ»ÂÉÓÃСд×Öĸ±íʾ¡£Java ÖеĹؼü×ÖÓÐ 50 ¸ö£¬°´ÓÃ;»®·ÖΪ£ºÊý¾ÝÀàÐÍ¡¢Óï¾ä¡¢ÐÞÊΡ¢·½·¨¡¢Àà¡¢ ......

Java: class , objects

Java: class , objects
1 Inheritance(¼Ì³Ð)µÄ¹Ø¼ü×Öextends
class MountainBike extends Bicycle {
}
µ«ÊDz»ÄܶàÖؼ̳С£²»¹ý¿ÉÒÔͨ¹ýimplements¶à¸öinterfaceÀ´ÊµÏÖÀàËƵĶ«Î÷
2 interface
interface Bicycle {
       void changeCadence(int newValue);   // wheel rev ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ