java Óï·¨:
java Óï·¨:
JavaµÄ»ù±¾·ûºÅ£¨token£©
JavaµÄµ¥´Ê·ûºÅÓÐÎåÖÖ£º¹Ø¼ü×Ö¡¢±êʶ·û¡¢³£Á¿¡¢·Ö¸ô·ûºÍ²Ù×÷·û¡£
JavaµÄ×Ö·û¼¯
Java ²ÉÓÃÒ»ÖÖ³ÆΪunicodeµÄ×Ö·û¼¯£¬¸Ã×Ö·û¼¯ºÏÊÇÒ»ÖÖеıàÂë±ê×¼£¬Óë³£¼ûµÄASCIIÂëµÄÇø±ðÔÚÓÚ£º
unicodeʹÓÃ16λ¶þ½øÖƶø²»ÊÇ8λÀ´±íʾһ¸ö×Ö·û¡£
unicode×Ö·û¼¯ÖÐÔö¼ÓÁËÐí¶à·ÇÀ¶¡Óï×Ö·û¡£
±êʶ·û
Java±êʶ·û±ØÐëÒÔ×Öĸ£¬Êý×Ö£¬ÃÀÔª·ûºÅ"$"£¬Ï»®Ïß"_"×é³É£¬±êʶ·ûµÚÒ»¸ö×Ö·û²»¿ÉÓÃÊý×Ö¡£
JavaÓïÑÔ¶Ô×ÖĸµÄ´óСдÊÇÃô¸ÐµÄ£¬ÔÚÓï·¨ÖÐÑϸñÇø·Ö´óСд¡£
¹Ø¼ü×Ö
¹Ø¼ü×ÖÊÇΪÌض¨Ä¿µÄ¶ø±£ÁôµÄ±£Áô×Ö£¬³ÌÐòÔ±²»Òª½«¹Ø¼ü×Ö×÷Ϊ×Ô¼ºµÄ±êʶ·û¡£ JavaµÄ¹Ø¼ü×ÖÓУº
abstract boolean break byte case catch char class continue do double else extends false
find finally float for implements import instanceof int interface long native new null
package private public return short static super switch synchronized this throw true try void while
³£Á¿
³£Á¿¿É·ÖΪÕûÐͳ£Á¿£¬¸¡µãÊý³£Á¿£¬×Ö·û³£Á¿£¬×Ö·û´®³£Á¿ºÍ²¼¶û³£Á¿¡£
ÕûÐͳ£Á¿£º¿É·ÖΪintÐͺÍlongÐÍÁ½ÖÖ£¬È±Ê¡ÎªintÐÍ£¬longÐÍÊýÖµºó¼ÓL¡£ ÕûÐͳ£Á¿¿ÉÓÃ10¡¢8ºÍ16½øÖƱíʾ¡£
È磺123£¨Ê®½øÖÆ£© 052£¨°Ë½øÖÆ£© 0x3c£¨Ê®Áù½øÖÆ£©
¸¡µãÊý³£Á¿£ºÓе¥¾«¶ÈºÍË«¾«¶ÈÖ®·Ö£¬È±Ê¡ÎªË«¾«¶È£¬µ¥¾«¶ÈÔÚÊýÖµºó¼Óf¡£ÁíÍ⣬¸¡µãÊý³£Á¿Ò²¿ÉÓÃÆÕͨ¼ÆÊý·¨ºÍ¿Æѧ¼ÆÊý·¨À´±íʾ¡£
È磺1.23f 1.1E-2
×Ö·û³£Á¿£ºÓÃ' 'À¨ÆðÀ´µÄÒ»¸ö×Ö·û¡£Èç'a'£¬'H'¡£
ʹÓÃ16λµÄunicode×Ö·û¼¯¡£
Java ÓïÑÔ¿ÉʹÓÃתÒå×Ö·û''À´±ê¼ÇÌØÊâ×Ö·û¡£Èç'n'±íʾ»»Ðзû¡£
×Ö·û´®³£Á¿ÓÃ" "°üÀ¨£¬Èç"Hello World"¡£
²¼¶û³£Á¿Ö»ÓÐÁ½¸öÖµ£¬trueºÍfalse¡£
·Ö¸ô·û
·Ö¸ô·ûÆð·Ö¸ôµ¥´Ê·ûºÅµÄ×÷ÓᣰüÀ¨·ÖºÅ";"¡¢»¨À¨ºÅ"{}"ºÍ¿Õ°×·ûºÅ¡£
JavaµÄ×¢ÊÍ
JavaµÄ×¢ÊÍÓÐÈýÖÖÐÎʽ£º
µ¥ÐÐ×¢ÊÍ
È磺//Comment on one line
¶àÐÐ×¢ÊÍ
È磺/* Comment on one
or more lines */
Îĵµ×¢ÊÍ
È磺/** Document
Comment */
JavaµÄÊý¾ÝÀàÐͺͱäÁ¿
JavaµÄ»ù±¾Êý¾ÝÀàÐÍ
JavaµÄ»ù±¾Êý¾ÝÀàÐÍÓÐ8ÖÖ£¬¼ûÏÂ±í£º
Êý¾ÝÀàÐÍ Àà±ð ¿í¶È£¨Î»£© È¡Öµ·¶Î§
boolean Âß¼ÐÍ 1 true/false
char ÎÄ×ÖÐÍ 16
byte ÕûÊýÀàÐÍ 8 -27 ~ 27-1
short ÕûÊýÀàÐÍ 16 -215 ~ 215-1
int ÕûÊýÀàÐÍ 32 -231 ~ 231-1
long ÕûÊýÀàÐÍ 64 -263 ~ 263-1
float ¸¡µãÐÍ 32
double ¸
Ïà¹ØÎĵµ£º
1.JavaÔÚÐéÄâ»úÉÏÔËÐÐ
JavaÔ´´úÂë²¢²»ÊDZ»±àÒë³ÉΪÆÕͨµÄ»úÆ÷´úÂë¡£¶øÊDZ»·Òë³ÉΪÐéÄâ»ú¿ÉÒÔÖ´ÐеĴúÂë¡£Ò»¸öJava½âÊÍÆ÷×îÖÕÖ´ÐÐÕâЩ´úÂë¡£ÕâÆäÖÐûÓÐÁ¬½ÓµÄ¹ý³Ì£»½âÊÍÔÚÐèÒªµÄʱºò¶¯Ì¬µÄ¼ÓÔØһЩÀࣻ
2.JavaÊÇÍêÈ«ÃæÏò¶ÔÏóµÄ
JavaÊÇÒ»ÖÖÍêÈ«ÃæÏò¶ÔÏóµÄÓïÑÔ¡£ÕâÒâζ×ÅÄã¶ÔÈκÎÒ»¸öJava¶ÔÏóËù×öµÄ¶¯×÷¶¼ÊÇͨ¹ýÒ ......
¿ª·¢»·¾³ eclipse3.2 £¨Ã»ÓÐÅäÖû·¾³ Çë²Î¿´ÉÏһƪÈÕÖ¾£©
н¨ÏîÄ¿£º
UserCover£¨Ãû³ÆËæ±ã£© ×ö¸ö¼òµ¥µÄ±¨µÀ²¢¼Ç¼µ÷ÓÃserverµÄusername
н¨°ü£ºcom.axis2.test
н¨½Ó¿Ú£º
package com.axis2.test;
public interface UserCover {
public void CoverName(String myname);
public String getUserList ......
FLEX:
[Bindable] public var ary1:Array=[];
private function init():void{
ary1.push('»ÆÏþ»ª');
......
import sun.net.ftp.*;
import sun.net.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.io.*;
public class FtpApplet extends Applet
{
FtpClient aftp;
DataOutputStream outputs ;
TelnetInputStream ins;
TelnetOutputStream outs;
TextArea lsArea;
La ......