JAVA(Èý)
JavaÔÓ̸£¨Áù£©
ÕâÆªÊDZÊÕß´òËãдµÄJ2se²¿·ÖµÄ×îºóһƪÁË£¬ÕâÆª½áÊøÖ®ºó£¬ÔÙдJ2ee²¿·Ö£¬²»ÖªµÀÊÇ·ñ»¹ºÏÊÊдÔÚÕâ¸ö°æ¿é£¿´ó¼Ò¿ÉÒÔ¸øµãÒâ¼û£¬Ð»Ð»´ó¼Ò¶ÔСµÜÕâô¹ÄÀøÒ»Â·Ð´ÍêǰÁùƪJavaÔÓ̸µÄJ2se²¿·Ö¡£×îºóÕâÆª´òËã̸һ̸JavaÖеÄRMI»úÖÆºÍJVMɳÏ䰲ȫ¿ò¼Ü¡£
1£® JavaÖеÄRMI»úÖÆ
RMIµÄÈ«³ÆÊÇÔ¶³Ì·½·¨µ÷Óã¬ÏàÐŲ»ÉÙÅóÓѶ¼Ìý˵¹ý£¬»ù±¾µÄ˼·¿ÉÒÔÓÃÒ»¸ö¾µä±È·½À´½âÊÍ£ºA¼ÆËã»úÏëÒª¼ÆËãÒ»¸öÁ½¸öÊýµÄ¼Ó·¨£¬µ«A×Ô¼º×ö²»ÁË£¬ÓÚÊǽÐÁíÍâһ̨¼ÆËã»úB°ï棬BÓмÆËã¼Ó·¨µÄ¹¦ÄÜ£¬Aµ÷ÓÃËü¾ÍÏñµ÷ÓÃÕâ¸ö¹¦ÄÜÊÇ×Ô¼ºµÄÒ»Ñù·½±ã¡£Õâ¸ö¾Í½Ð×öÔ¶³Ì·½·¨µ÷ÓÃÁË¡£
Ô¶³Ì·½·¨µ÷ÓÃÊÇEJBʵÏÖµÄÖ§Öù£¬½¨Á¢·Ö²¼Ê½Ó¦ÓõĺËÐÄ˼Ïë¡£Õâ¸öºÜºÃÀí½â£¬ÔÙÄÃÉÏÃæµÄ¼ÆËã¼Ó·¨Àý×Ó£¬AÖ»ÖªµÀÈ¥call¼ÆËã»úBµÄ·½·¨£¬×Ô¼º²¢Ã»ÓÐBµÄÄÇЩ¹¦ÄÜ£¬ËùÒÔA¼ÆËã»ú¶Ë¾ÍÎÞ·¨¿´µ½BÖ´ÐÐÕâ¶Î¹¦ÄܵĹý³ÌºÍ´úÂ룬ÒòΪ¿´¶¼¿´²»µ½£¬ËùÒÔ¼ÈûÓлú»áÇÔȡҲûÓлú»áÈ¥¸Ä¶¯·½·¨´úÂë¡£EJBÕýʽ»ùÓÚÕâÑùµÄ˼ÏëÀ´Íê³ÉËüµÄÈÎÎñµÄ¡£µ±¼òµ¥µÄ¼Ó·¨±ä³É¸´ÔÓµÄÊý¾Ý¿â²Ù×÷ºÍµç×ÓÉÌÎñ½»Ò×Ó¦ÓõÄʱºò£¬ÕâÑùµÄ°²È«ÐԺͷֲ¼Ê½Ó¦ÓõıãÀûÐԾͱíÏÖ³öÀ´ÓÅÊÆÁË¡£
ºÃÁË£¬»Øµ½Ï¸½ÚÉÏ£¬ÒªÈçºÎʵÏÖÔ¶³Ì·½·¨µ÷ÓÃÄØ£¿ÎÒÏ£Íû´ó¼ÒѧϰÈκμ¼ÊõµÄʱºò¿ÉÒÔÊÔ×ÅÒÀÀµ×Ô¼ºµÄÏÂÒâʶÅжϣ¬Ö»ÒªÄãµÄÏë·¨ÊǺÏÀí½¡×³µÄ£¬ÄÇôºÜ¿ÉÄÜʵ¼ÊÉÏËü¾ÍÊÇÕâô×öµÄ£¬±Ï¾¹ÕæÀí¶¼Ô̲ØÔÚÆ½·²µÄÉú»îϸ½ÚÖС£ÕâÑùÖ»Òª´ø×ÅһЩ±¡ÈõµÄJava»ù´¡À´Ë¼¿¼RMI£¬ÆäʵҲ¿ÉÒÔÏë³ö¸ö´ó¸ÅÀ´¡£
a) ÐèÒªÓÐÒ»¸ö·þÎñÆ÷½ÇÉ«£¬ËüÓµÓÐÕæÕýµÄ¹¦ÄÜ´úÂë·½·¨¡£ÀýÈçB£¬ËüÌṩ¼Ó·¨·þÎñ
b) Èç¹ûÏëÔ¶³ÌʹÓÃBµÄ¹¦ÄÜ£¬ÐèÒªÖªµÀBµÄIPµØÖ·
c) Èç¹ûÏëÔ¶³ÌʹÓÃBµÄ¹¦ÄÜ£¬»¹Ðè
Ïà¹ØÎĵµ£º
Ò»¡¢BorderLayoutTest.java
package com.briup.md08;
import java.awt.*;
import javax.swing.*;
/*BorderLayoutÌØµã
1¡¢×é¼þµÄ´óСÓÉÈÝÆ÷¾ö¶¨
2¡¢ÈÝÆ÷±»»®·ÖΪ5¸öÇøÓò£¬Ã¿¸öÇøÓòÖ»ÄÜÖ±½Ó¼ÓÈë3¸ö×é¼þ
3¡¢×é¼þ¼ÓÈëµÄλÖÃÐèÒªÖ¸¶¨£¬Ä¬ÈÏΪCENTER
4¡¢×é¼þÖ®¼äĬÈÏûÓмä϶
5¡¢Èç¹û³ýCENTER ÒÔÍâµÄÇøÓòûÓмÓÈë×é¼þ£¬Æ ......
JavaµÚÈý·½library ecosystemÊÇÒ»¸öºÜ¹ãÀ«µÄ·¶³ë¡£²»¾ÃǰÓÐÈË׫ÎÄ£ºÃ¿¸öÏîÄ¿ÖУ¬Äã±ØÐëÖªµÀµÄ11¸öJavaµÚÈý·½Àà¿â¡£
µ¥Ôª²âÊÔ
1.DBUnit
DBunitÊÇÒ»¸ö»ùÓÚjunitÀ©Õ¹µÄÊý¾Ý¿â²âÊÔ¿ò¼Ü¡£ËüÌṩÁË´óÁ¿µÄÀà¶ÔÓëÊý¾Ý¿âÏà¹ØµÄ²Ù×÷½øÐÐÁ˳éÏóºÍ·â×°¡£
2.MOckito
MockitoÊÇÒ»¸öÕë¶ÔJavaµÄmocking¿ò¼Ü¡£Äã¿ÉÒÔʹÓüò½àµÄAPI±àд ......
package CH1;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class exercise001 extends JApplet {
// ¶¨Òå±äÁ¿
private JColorChooser chooser = new JColorChooser();
private JButton button = new JButton("Show Color Chooser");
private JDialog dialo ......
1£® ¹ØÓÚ¶¯Ì¬¼ÓÔØ»úÖÆ??
ѧϰJava±ÈC++¸üÈÝÒ×Àí½âOOPµÄ˼Ï룬±Ï¾¹C++»¹»ìºÏÁ˲»ÉÙÃæÏò¹ý³ÌµÄ³É·Ö¡£ºÜ¶àÈ˶¼Äܱ³³öÀ´JavaÓïÑÔµÄÌØµã£¬ËùνµÄ¶¯Ì¬¼ÓÔØ»úÖÆµÈµÈ¡£µ±È»¸ÅÄîÍùÍùÊÇÏȼÇס¶øºóÏû»¯µÄ£¬¿ÉÓжàÉÙÈËÕæÕýÈ¥Ìå»á¹ý¶¯Ì¬¼ÓÔØµÄ»úÖÆ£¬ÊÔͼȥѰÕÒ¹ýÆäÖеÄϸ½ÚÄØ? Ìṩ´ó¼ÒÒ»¸ö·½·¨£º
ÔÚÃüÁîÐд°¿ ......