java±ÊÊÔ
01. ˵³öArrayList,VectorµÄÇø±ð£¬HashMapºÍHashtableµÄÇø±ð¡£
02. final, finally, finalizeµÄÇø±ð¡£
03. abstract classºÍinterfaceÓÐʲôÇø±ð?
04. ʲôʱºòÓÃassert¡£
05. GCÊÇʲô? ΪʲôҪÓÐGC? À¬»ø»ØÊÕÆ÷µÄ»ù±¾ÔÀíÊÇʲô£¿À¬»ø»ØÊÕÆ÷¿ÉÒÔÂíÉÏ»ØÊÕÄÚ´æÂð£¿ÓÐʲô°ì·¨Ö÷¶¯Í¨Öª ÐéÄâ»ú½øÐÐÀ¬»ø»ØÊÕ.
06. SetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖظ´Óë·ñÄØ? ÊÇÓÃ==»¹ÊÇequals()? ËüÃÇÓкÎÇø±ð?
07. ¹¹ÔìÆ÷ConstructorÊÇ·ñ¿É±»override?
08. swtichÊÇ·ñÄÜ×÷ÓÃÔÚbyteÉÏ£¬ÊÇ·ñÄÜ×÷ÓÃÔÚlongÉÏ£¬ÊÇ·ñÄÜ×÷ÓÃÔÚStringÉÏ?
09. try {}ÀïÓÐÒ»¸öreturnÓï¾ä£¬ÄÇô½ô¸úÔÚÕâ¸ötryºóµÄfinally {}ÀïµÄcode»á²»»á±»Ö´ÐУ¬Ê²Ã´Ê±ºò±»Ö´ÐУ¬ÔÚreturnÇ°»¹ÊǺó
10. µ±Ò»¸ö¶ÔÏó±»µ±×÷²ÎÊý´«µÝµ½Ò»¸ö·½·¨ºó£¬´Ë·½·¨¿É¸Ä±äÕâ¸ö¶ÔÏóµÄÊôÐÔ£¬²¢¿É·µ»Ø±ä»¯ºóµÄ½á¹û£¬ÄÇôÕâÀïµ½µ×ÊÇÖµ´«µÝ»¹ÊÇÒýÓô«µÝ?
11. ÊÇ·ñ¿ÉÒÔ´ÓÒ»¸östatic·½·¨ÄÚ²¿·¢³ö¶Ô·Çstatic·½·¨µÄµ÷Óã¿
12. public£¬private£¬protectedµÄ×÷ÓÃÓò£¬ÒÔ¼°²»Ð´Ê±Ä¬ÈÏÊÇʲô£¿
13. float f=3.4£» ¶Ôô£¿
14. дһ¸ö¶àÏ̵߳ÄʵÏÖ¡£ÃèÊö¶àÏ̵߳ÄÓŵ㡣
15. д³öÒ»¸öÄãÔø¾ÏîÄ¿µÄ¼Ü¹¹£¬Ààͼ¡£¡£¡£¡££¨¸÷ÖÖͼ¡£¡£¡£¡££©
Ïà¹ØÎĵµ£º
public class Sort {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] arry = { 19, 10, 5, 45, 100, 30, 35, 29 };
int[] sortArry = mergeSort(arry);
for (int i = 0; i < sortArry.le ......
Èí»Ø³µ£¨Soft Return£©£ºÈí»Ø³µÊÇÔÚ×Ö´¦Àí³ÌÐòÖÐ×÷Ϊ×Ô¶¯ÒÆÐй¦ÄܵÄÒ»²¿·Ö×Ô¶¯²åÈëµÄ£¬Ò²½Ð»»Ðзû£¬ÔÚwordÖп´²»¼û¡£Èç¹ûÎı¾Ò»Ðеij¤¶È³¬¹ýÎĵµËù¶¨ÒåµÄÓұ߾àʱ£¬¼´µ±Ç°ÐÐûÓÐ×ã¹»µÄ¿Õ¼ä·ÅÖÃÏÂÒ»¸ö×Ö·ûʱ£¬ÎÄ×Ö´¦ÀíÈí¼þ½«ÔÚÕâÒ»ÐÐÎı¾µÄĩβ×Ô¶¯²åÈëÒ»¸öÈí»Ø³µ·û£¬Îı¾ÁíÆðÒ»ÐС£Õâ¸öÈí»Ø³µ·ûÊÇÓɱ༳ÌÐò×Ô¶¯²úÉúµÄ£¬½Ð× ......
public String makeStars(int size, char ch) {
if(size < 1) {
throw new IllegalArgumentException("size must be greater than 0");
}
char[] chs = new char[size];
for(int i = 0; ......
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class TestClass {
/**
* @param args
*/
public static void main(String[] args) {
// TODO ×Ô動Éú³É¤µ¤ì¤¿¥á¥½¥Ã¥É?¥¹¥¿¥Ö
List li = ......
ÌâÄ¿£ºÊ¹ÓÃJavaʵÏÖÁ´±í
˼·£º
Á´±íµÄÌص㣺Á´±íµÄµÄÔªËØÖ®¼äͨ¹ýÖ¸ÕëÁ¬½ÓÆðÀ´¡£Í¨³£ÓÐÒ»¸öÍ·Ö¸ÕëÖ¸ÏòµÚÒ»¸öÔªËØ£¬Í¨¹ýµÚÒ»¸öÔªËØ¿ÉÒÔ·ÃÎʵ½ÆäËûµÄÔªËØ¡£
Á´±íÖÐÊý¾ÝÈçºÎ´æ´¢£ºÁ´±íÖеÄÿ¸öÔªËØÓ¦¸ÃÓɱíʾÊý¾ÝµÄÓòºÍÖ¸ÏòÆäËûÔªËصÄÖ¸Õë×é³É¡£
Á´±íµÄ³£ÓòÙ×÷£º´´½¨Á´±í¡¢ÔÚÁ´±íÖÐÌí¼ÓÔªËØ£¨ÔÚ×îºóÌí¼Ó»òÕßÔÚij¸ö¾ßÌåµÄ ......