Java½â»ó1 4³õ¼¶ÎÊÌâ
µÃÀ²£¬Ç°ÃæÄǸöÃÕÌâÊÇÓе㼬ÊÖ£¬µ«ËüÊÇÓйØÕû³ýµÄ£¬Ã¿¸öÈ˶¼ÖªµÀÕû³ýÊǺÜÂé·³µÄ¡£ÄÇôÏÂÃæµÄ³ÌÐòÖ»Éæ¼°¼Ó·¨£¬ËüÓÖ»á´òÓ¡³öʲôÄØ£¿
public class Elementary{
public static void main(String[] args){
System.out.println(12345+5432l);
}
}
´Ó±íÃæÉÏ¿´£¬ÕâÏñÊÇÒ»¸öºÜ¼òµ¥µÄÃÕÌâ——¼òµ¥µ½²»ÐèÒªÖ½ºÍ±ÊÄã¾Í¿ÉÒÔ½â¾öËü¡£¼ÓºÅµÄ×ó²Ù×÷ÊýµÄ¸÷¸öλÊÇ´Ó1µ½5ÉýÐòÅÅÁеģ¬¶øÓÒ²Ù×÷ÊýÊǽµÐòÅÅÁеġ£Òò´Ë£¬ÏàÓ¦¸÷λµÄºÍÈÔÈ»Êdz£Êý£¬³ÌÐò±Ø¶¨´òÓ¡66666¡£¶ÔÓÚÕâÑùµÄ·ÖÎö£¬Ö»ÓÐÒ»¸öÎÊÌ⣺µ±ÄãÔËÐиóÌÐòʱ£¬Ëü´òÓ¡³öµÄÊÇ17777¡£ÄѵÀÊÇJava¶Ô´òÓ¡ÕâÑùµÄ·Ç³£Êý×Ö±§ÓÐÆ«¼ûÂ𣿲»ÖªÔõôµÄ£¬Õâ¿´ÆðÀ´²¢²»ÏñÊÇÒ»¸öºÏÀíµÄ½âÊÍ¡£
ÊÂÎïÍùÍùÓбðÓÚËüµÄ±íÏó¡£¾ÍÒÔÕâ¸öÎÊÌâΪÀý£¬Ëü²¢Ã»ÓдòÓ¡³öÎÒÃÇÏëÒªµÄÊä³ö¡£Çë×Ðϸ¹Û²ì + ²Ù×÷·ûµÄÁ½¸ö²Ù×÷Êý£¬ÎÒÃÇÊǽ«Ò»¸öintÀàÐ͵Ä12345¼Óµ½ÁËlongÀàÐ͵Ä5432lÉÏ¡£Çë×¢Òâ×ó²Ù×÷Êý¿ªÍ·µÄÊý×Ö1ºÍÓÒ²Ù×÷Êý½áβµÄСд×ÖĸlÖ®¼äµÄϸ΢²îÒì¡£Êý×Ö1µÄˮƽ±Ê»®£¨³ÆΪ“±Û£¨arm£©”£©ºÍ´¹Ö±±Ê»®£¨³ÆΪ“¾¥£¨stem£©”£©Ö®¼äÊÇÒ»¸öÈñ½Ç£¬¶øÓë´ËÏà¶ÔÕÕµÄÊÇ£¬Ð¡Ð´×ÖĸlµÄ±ÛºÍ¾¥Ö®¼äÊÇÒ»¸öÖ±½Ç¡£
ÔÚÄã´óº°“¶ñÐÄ£¡”֮ǰ£¬ÄãÓ¦¸Ã×¢Òâµ½Õâ¸öÎÊÌâȷʵÒѾÒýÆðÁË»ìÂÒ£¬ÕâÀïȷʵÓÐÒ»¸ö½Ìѵ£ºÔÚlongÐÍ×ÖÃæ³£Á¿ÖУ¬Ò»¶¨ÒªÓôóдµÄL£¬Ç§Íò²»ÒªÓÃСдµÄl¡£ÕâÑù¾Í¿ÉÒÔÍêÈ«Æþ¶ÏÕâ¸öÃÕÌâËù²úÉúµÄ»ìÂÒµÄÔ´Í·¡£
System.out.println(12345+5432L);
ÏàÀàËƵģ¬Òª±ÜÃâʹÓõ¥¶ÀµÄÒ»¸öl×Öĸ×÷Ϊ±äÁ¿Ãû¡£ÀýÈ磬ÎÒÃǺÜÄÑͨ¹ý¹Û²ìÏÂÃæµÄ´úÂë¶ÎÀ´ÅжÏËüµ½µ×ÊÇ´òÓ¡³öÁбíl»¹ÊÇÊý×Ö1¡£
//²»Á¼´úÂë-ʹÓÃÁËl×÷Ϊ±äÁ¿Ãû
List l = new ArrayList<String>();
l.add("Foo");
System.out.println(1);
×ÜÖ®£¬Ð¡Ð´×ÖĸlºÍÊý×Ö1ÔÚ´ó¶àÊý´ò×Ö»ú×ÖÌåÖж¼ÊǼ¸ºõÒ»ÑùµÄ¡£Îª±ÜÃâÄãµÄ³ÌÐòµÄ¶ÁÕ߶ԶþÕß²úÉú»ìÏý£¬Ç§Íò²»ÒªÊ¹ÓÃСдµÄlÀ´×÷ΪlongÐÍ×ÖÃæ³£Á¿µÄ½áβ»òÊÇ×÷Ϊ±äÁ¿Ãû¡£Java´ÓC±à³ÌÓïÑÔÖм̳ÐÁ¼¶à£¬°üÀ¨longÐÍ×ÖÃæ³£Á¿µÄÓï·¨¡£Ò²Ðíµ±³õÔÊÐíÓÃСдµÄlÀ´±àдlongÐÍ×ÖÃæ³£Á¿±¾Éí¾ÍÊÇÒ»¸ö´íÎó¡£
Ïà¹ØÎĵµ£º
JavaÖеÄtransient£¬volatileºÍstrictfp¹Ø¼ü×Ö
Èç¹ûÓÃtransientÉùÃ÷Ò»¸öʵÀý±äÁ¿£¬µ±¶ÔÏó´æ´¢Ê±£¬ËüµÄÖµ²»ÐèҪά³Ö¡£ÀýÈ磺
Java´úÂë
class T {
transient int a; //²»ÐèҪά³Ö
int b;  ......
ClassLoaderÒ»¸ö¾³£³öÏÖÓÖÈúܶàÈËÍû¶øÈ´²½µÄ´Ê£¬±¾ÎĽ«ÊÔͼÒÔ×îdzÏÔÒ׶®µÄ·½Ê½À´½²½â ClassLoader£¬Ï£ÍûÄܶԲ»Á˽â¸Ã»úÖƵÄÅóÓÑÆðµ½Ò»µãµã×÷Óá£
ÒªÉîÈëÁ˽âClassLoader£¬Ê×ÏȾÍÒªÖªµÀClassLoaderÊÇÓÃÀ´¸ÉʲôµÄ£¬¹ËÃû˼Ò壬Ëü¾ÍÊÇÓÃÀ´¼ÓÔØClassÎļþµ½JVM£¬ÒÔ¹©³ÌÐòʹÓõġ£ÎÒÃÇÖªµÀ£¬java³ÌÐò¿ÉÒÔ¶¯Ì¬¼ÓÔØÀඨÒå£ ......
ѹËõÎļþ´úÂ룺
import java.io.*;
import java.util.zip.*;//ZipOutputStreamÕâ¸öÁ÷ÔÚÕâÀï
public class ZipOutputStreamTest
{
public static void main(String[] args) throws Exception
{
File f = new File("C:\\aaa.csv");
FileInputStream fis = new FileInputStream(f);
B ......
public static void getConnAndTableStruct() {
Connection connection = null;
PreparedStatement pstmt = null;
ResultSetMetaData rsmd = null;
try {
// mysqlÁ¬½Ó
//Class.forName("org.gjt.mm.mysql.Driver");
//connection = DriverManager.g ......
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......