摘要:
public class test1 { public void test(String str){ System.out.print(str); } public static void main(String[] args) { test1 t = new test1(); t = null; t.test("abc"); }}会能通过编译,不能运行的会报错的哦!Exception in thread "main" java.lang.NullPointerExceptionat com.test.test1.main(test1.java:10) 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><!-- - Application context definition for JPetStore's business layer. - Contains bean references to the transaction manager and to the DAOs in - dataAccessContext-local/jta.xml (see web.xml's "contextConfigLocation" 阅读全文