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

JavaỊ̈߳ºÏ̵߳ĵ÷¶È ÐÝÃß

JavaÏ̵߳÷¶ÈÊÇJava¶àÏ̵߳ĺËÐÄ£¬Ö»ÓÐÁ¼ºÃµÄµ÷¶È£¬²ÅÄܳä·Ö·¢»ÓϵͳµÄÐÔÄÜ£¬Ìá¸ß³ÌÐòµÄÖ´ÐÐЧÂÊ¡£
 
ÕâÀïÒªÃ÷È·µÄÒ»µã£¬²»¹Ü³ÌÐòÔ±Ôõô±àдµ÷¶È£¬Ö»ÄÜ×î´óÏ޶ȵÄÓ°ÏìÏß³ÌÖ´ÐеĴÎÐò£¬¶ø²»ÄÜ×öµ½¾«×¼¿ØÖÆ¡£
 
Ïß³ÌÐÝÃßµÄÄ¿µÄÊÇʹÏß³ÌÈóöCPUµÄ×î¼òµ¥µÄ×ö·¨Ö®Ò»£¬Ïß³ÌÐÝÃßʱºò£¬»á½«CPU×ÊÔ´½»¸øÆäËûỊ̈߳¬ÒÔ±ãÄÜÂÖ»»Ö´ÐУ¬µ±ÐÝÃßÒ»¶¨Ê±¼äºó£¬Ï̻߳áËÕÐÑ£¬½øÈë×¼±¸×´Ì¬µÈ´ýÖ´ÐС£
 
Ïß³ÌÐÝÃߵķ½·¨ÊÇThread.sleep(long millis) ºÍThread.sleep(long millis, int nanos) £¬¾ùΪ¾²Ì¬·½·¨£¬Äǵ÷ÓÃsleepÐÝÃßµÄÄĸöÏß³ÌÄØ£¿¼òµ¥Ëµ£¬ÄĸöÏ̵߳÷ÓÃsleep£¬¾ÍÐÝÃßÄĸöÏ̡߳£
 
/**
* JavaỊ̈߳ºÏ̵߳ĵ÷¶È-ÐÝÃß
*
* @author leizhimin 2009-11-4 9:02:40
*/

public
class
Test {
        public
static
void
main(String[] args) {
                Thread t1 = new
MyThread1();
                Thread t2 = new
Thread(new
MyRunnable());
                t1.start();
                t2.start();
        }
}
class
MyThread1 extends
Thread {
        public
void
run() {
                for
(int
i = 0; i < 3; i++) {
                        System.out.println("Ïß³Ì1µÚ"
+ i + "´ÎÖ´ÐУ¡"
);
                        try
{
           &n


Ïà¹ØÎĵµ£º

JavaÖ®¸¸James Gosling̸¼ÆËã»ú±à³ÌÒÕÊõ

2002Äê£¬ÖøÃûµÄ”Java2ÐéÄâ»úÄÚÄ»”×÷Õß¶ÔJavaÖ®¸¸Õ²Ä·Ë¹·¸ß˹ÁÖ½øÐÐÁË·Ã̸£¬Ì¸»°ÖУ¬¸ß˹ÁÖ¾ÍÈí¼þÉè¼ÆµÄ¸´ÔÓÐÔºÍËã·¨·¢±íÁËËûµÄһЩ¿´·¨¡£¶ÔÓÐÖ¾ÓÚ´ÓÊÂITÈí¼þÐÐÒµµÄͯЬÀ´Ëµ£¬ÌýÌýר¼ÒµÄÒâ¼û£¬Ó¦¸Ã»¹ÊDz»ÎÞñÔÒæµÄ¡£
JavaÖ®¸¸James Gosling
2002Äê3ÔÂ22ÈÕ£¬Bill Venners²É·ÃÁËJavaÖ®¸¸£¬Ì¸ÂÛÁËÓÐ¹ØÆóÒµÈ ......

java IO learning

javaѧϰ:³¹µ×Ã÷°×JavaµÄIOϵͳ
ÎÄÕÂÀ´Ô´£º»¥ÁªÍø
Ò»£® InputºÍOutput
1. stream´ú±íµÄÊÇÈκÎÓÐÄÜÁ¦²ú³öÊý¾ÝµÄÊý¾ÝÔ´£¬»òÊÇÈκÎÓÐÄÜÁ¦½ÓÊÕÊý¾ÝµÄ½ÓÊÕÔ´¡£ÔÚJavaµÄIOÖУ¬ËùÓеÄstream£¨°üÀ¨InputºÍOut stream£©¶¼°üÀ¨Á½ÖÖÀàÐÍ£º
1.1 ÒÔ×Ö½ÚΪµ¼ÏòµÄstream
ÒÔ×Ö½ÚΪµ¼ÏòµÄstream£¬±íʾÒÔ×Ö½ÚΪµ¥Î»´ÓstreamÖжÁÈ¡»òÍùst ......

javaѧϰС¸ÐÊÜ

 ¡¡×î½ü²Å¿ªÊ¼Ñ§Ï°java,¸Ð¾õ»¹¿ÉÒÔ°É£¬Ã»ÓÐÏëÏóÖеÄÄÇôÄÑѧ£¬Ò²ÐíÊÇÓÐÒ»¶¨µÄÓïÑÔ»ù´¡°É£¡¿ÉÄÜÓÐʱÓöµ½Ê²Ã´ÎÊÌâ½â¾ö²»ÁË»áÓеãСÓôÃÆ°É£¬µ«ÊÇÒ»µ«ÅªÃ÷°×ÁË»¹ÊǾõµÃÌì¿ÕÂùÇçÀʵģ¬ºÇºÇ£¬ºÃÏë×Ô¼ºÄܹ»Å¬Á¦½«ËüѧºÃ£¬ÕâÑù²Å»áÓÐÒ»µãµãµÄ³É¾Í¸Ð°¡£¡Ï£ÍûÒÔºóÄܼÓÇ¿Á·Ï°£¬Ìá¸ß×Ô¼ºµÄ±à³ÌÄÜÁ¦£¡Ð¡²ËÄñÒ»¸ö£¡¹þ¹þ£¡£¡ ......

ÔÚÉÐѧÌÃѧÍêjavaÈÃÎÒÇáËɸ㶨¹¤×÷

ÔÚÉÐѧÌÃѧÍêjavaÈÃÎÒÇáËɸ㶨¹¤×÷
¡¾Ñ§Ô±¹ÊÊ¡¿À´×ÔÉÐѧÌÃÕæÈËÕæÊ                                       &n ......

java³õʼ»¯Ë³Ðò

³õʼ»¯µÄʵ¼Ê¹ý³ÌΪ£º
ÔÚÆäËüÈκÎÊÂÎï·¢Éú֮ǰ£¬½«·ÖÅ䏸¶ÔÏóµÄ´æ´¢¿Õ¼ä³õʼ»¯³É¶þ½øÖƵÄÁã¡£
¸¸Ààstatic ¿é»ò±äÁ¿
×ÓÀàstatic¿é»ò±äÁ¿
¸¸ÀàµÄÏÔʽ³õʼ»¯
¸¸À๹Ô캯Êý
×ÓÀàµÄÏÔʽ³õʼ»¯
×ÓÀàµÄ¹¹Ô캯Êý
´Ë¹ý³ÌÖÐÈôÓи¸À๹ÔìÌåÖе÷Ó÷½·¨¿É±»×ÓÀàÖØÔØ£¬ÔòJVM»á´Ó×îµÍ×ÓÀà¶ÔÏó´¦Ñ°ÕÒ´Ë·½·¨£¬ÕÒµ½ÔòÖ´ÐУ¬ËäÈ»´Ëʱ¶Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ