[¾µä]ÊÇjava¸ßÊ־ͽøÀ´£¬¿´Ò»ÏÂÄãµÄˮƽ£¬1.5%ÕýÈ·ÂÊ
ÕâµÀÌâÊÇÒ»¸öjava¹«Ë¾µÄ±ÊÊÔÌ⣬¿¼²ìÁË´ó¸Åһǧ¶à¸öÃæÊÔµÄjava¹¤³ÌʦÒÔ¼°ÏîÄ¿¾Àí£¬²»¹ýÈ«¶ÔµÄÖ»Óв»µ½1.5%
ÔÚ×öÕâ¸öÌâµÄʱºòÇ밴˳Ðò×ö£¬²»Äܸıä˳Ðò£¬×öÇ°ÃæÌâʱ£¬²»Äܲ鿴ºóÃæµÄÌ⣬ͬÉÏÒ²²»Òª²é¿´ÏÂÃæµÄ»Ø¸´,²»Òª¸Ä±äÄãµÄ´ð°¸
¶àµÄÏȲ»Ëµ£¬Çë°ÑÏÂÃæµÄÌâ´ð°¸¸ø³ö
class Human{
static int n=10;
public Human(){
age();
}
public void age(){
}
}
public class HumanAction extends Human{
private int n=20;
public void age(){
System.out.println("ÄêÁäÊÇ£º"+n);
}
public static void main(String[] args){
new HumanAction();
}
}
Êä³öʲô£¿
-------------------------------------------------------
class Human{
public int n=10;
public Human(){
age();
}
public void age(){
}
}
public class HumanAction extends Human{
private int n=20;
public void age(){
System.out.println("ÄêÁäÊÇ£º"+n);
}
public static void main(String[] args){
new HumanAction();
}
}
Êä³öʲô£¿
-------------------------------------------------------
class Human{
public static int n=10;
public Human(){
age();
}
public void age(){
}
}
public class HumanAction extends Human{
private static int n=20;
public void age(){
System.out.println("ÄêÁäÊÇ£º"+n);
}
public static void main(String[] args){
new HumanAction();
}
}
Êä³öʲô£¿
-------------------------------------------------------
ÕâÊÇÒ»¸öºÜ»ù´¡µÄjava¼Ì³Ð¹ØϵÓë³õʼ»¯µÄÌ⣬д³öÄãµÄ´ð°¸°É£¬¿´¿´ÄãµÄˮƽ
Ïà¹ØÎĵµ£º
1.Ê×ÏÈдһ¸öȨÏÞ¹ýÂËfilterÀà,ʵÏÖFilter½Ó¿Ú
/*Ê×ÏÈдһ¸öȨÏÞ¹ýÂËfilter*/
import javax.servlet.Filter;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.FilterChain;
import ......
java.io.InputStreamµÄread()·½·¨ÃèÊö£º
If no byte is available because the end of the stream has been reached, the value -1 is returned.
µ½´ïÁ÷µÄĩβÕæ»á·Å»Ø-1Âð£¿
......
JDBC¶ÁÈ¡Êý¾Ý¿âÔªÊý¾Ý,Éú³ÉJAVAʵÌåÀà
package com.nffish.util;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import com.nffish.c ......
¶ÔÓÚ½«ÒªÊ¹ÓõÄJSP¹æ·¶µÄÒ»¸öÌص㣬¾ÍÊÇJSP±í´ïʽÓïÑÔ¡£Ôںܴó³Ì¶ÈÉÏ£¬ËüÊÇÓÐÒâ¼ò»¯µÄ£¬²¢¶ÀÁ¢ÓÚJSP¡£
ÔÚJSPµÄÔçÆÚ°æ±¾ÖУ¬Java´úÂëÒԽű¾µÄÐÎʽǶÈëµ½JSPÒ³ÃæÖУ¬ÀýÈ磺
<%
MyBean bean = new MyBean();
String name = bean.getName();
out.println(name);
%>
Õâ¸ö½Å±¾´úÂëн¨ÁËÒ»¸öÃûΪMyBeanµÄʵÀý£¬»ñµÃË ......
Java/JSPÖÐÎÄÂÒÂëÎÊÌâ½â¾öÐĵÃ
×Ô´Ó½Ó´¥JavaºÍJSPÒÔÀ´£¬¾Í²»¶ÏÓëJavaµÄÖÐÎÄÂÒÂëÎÊÌâ´ò½»µÀ£¬ÏÖÔÚÖÕÓڵõ½Á˳¹µ×µÄ½â¾ö£¬ÏÖ½«ÎÒÃǵĽâ¾öÐĵÃÓë´ó¼Ò¹²Ïí¡£
Ò»¡¢JavaÖÐÎÄÎÊÌâµÄÓÉÀ´
JavaµÄÄں˺ÍclassÎļþÊÇ»ùÓÚunicodeµÄ£¬ÕâʹJava³ÌÐò¾ßÓÐÁ¼ºÃµÄ¿çƽ̨ÐÔ£¬µ«Ò²´øÀ´ÁËһЩÖÐÎÄÂÒÂëÎÊÌâµÄÂé·³¡£ÔÒòÖ÷ÒªÓÐÁ½·½Ã棬JavaºÍJS ......