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

JavaÖ®Override OverloadÖ®¼äµÄÇø±ð


overrideÊǸ²Ð´£¬¶ÔÓ¦ÓÚOO±à³ÌµÄ¼Ì³ÐÌØÐÔ£¬Òâ˼¾ÍÊÇÔÚ×ÓÀàÖÐÖØд¸¸ÀàÖеķ½·¨£»   
overloadÊÇÖØÔØ£¬¶ÔÓ¦ÓÚOO±à³ÌµÄ¶à̬ÌØÐÔ£¬Òâ˼¾ÍÊÇÔÚͬһ¸öÀàÖÐͬÑùÃû³ÆµÄ¶à¸ö·½·¨£¬ Õâ¶à¸ö·½·¨Ö®¼äµÄÇø±ðÔÚËûÃǵIJÎÊýÁв»Í¬¡£
ÀýÈ磺
public interface UserDao {
public void save();
}
public class Override_Overload implements UserDao{
@Override
public void save() {
// TODO Auto-generated method stub
}
//ÒÔÏÂÈýÖз½¾ÍÊÇoverloadÊÇÖØÔØ
public int find(String name){
return 1;
}
public int find(String name,Long id){
return 1;
}
public int find(Long id){
return 1;
}
}


Ïà¹ØÎĵµ£º

JAVA³ÌÐòÔ±±ØÈ¥µÄÍøÕ¾

JAVA³ÌÐòÔ±±ØÈ¥µÄÍøÕ¾
2008-08-19 16:35
Ó¢ÎÄÍøÕ¾
http://www.javaalmanac.com - Java¿ª·¢ÕßÄê¼øÒ»ÊéµÄÔÚÏß°æ±¾£¬ÏëÒª¿ìËٲ鵽ijÖÖJava¼¼ÇɵÄÓ÷¨¼°Ê¾ÀýµÄ´úÂëÕâÊÇÒ»¸ö²»´íµÄÈ¥´¦.
http://www.onjava.com - O'ReillyµÄJavaÍøÕ¾. ÿÖܶ¼ÓÐÐÂÎÄÕÂ.
http://java.sun.com - ¹Ù·½µÄJava¿ª·¢ÕßÍøÕ¾ - ÿÖܶ¼ÓÐÐÂÎÄÕ·¢±í. ......

Myeclipse±¨Could not create Java VM

Myeclipse±¨Could not create Java VM
 
»·¾³£º
Myeclipse6.0£¬tomcat6.0, 2GÄÚ´æ
½ñÌìһֱʹÓÃDEBUGģʽÆô¶¯tomcatÒ»Ö±ºÜÂý£¬ËùÒÔÏëʹÓÃRUNģʽÀ´Æô¶¯£¬µ«ÊÇÿ´ÎÆô¶¯¶¼±¨´í“could not create the java virtual machine”£¬ÌáʾÉèÖÃÄÚ´æ²»×㣬°Ù¶ÈÏ£¬¶¼ÒªÇóÐÞ¸Äeclipse.iniÅäÖÃÎļþ£¬µ«ÊÇÐÞ¸ÄÁ˲»ºÃÊ ......

Lucene£º»ùÓÚJavaµÄÈ«ÎļìË÷ÒýÇæ¼ò½é


LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖƼò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅÅÐò£ ......

java ´°¿Ú¹Ø±ÕµÄÁùÖÖ·½·¨

1.ʹÓÃJFrameµÄenableEventsºÍprocessWindowEvent
//Frame1.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Frame1 extends JFrame {
  public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    this.setSize(ne ......

ÓÃjava½âÊÍʱĪ´ø.class

¸Õ¸ÕÔËÐÐjava HelloWorld.class£¬ÀÏÊÇ˵£º
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class
Caused by: java.lang.ClassNotFoundException: HelloWorld.class
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ