package com.gochinatv.cdn.api.basic.normal;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ClassForNameTest {
  
	
	public static void main(String[] args) {
		//Class.forName(className)
		
		//com.mysql.jdbc.Driver
		try {
			Connection con = DriverManager.getConnection("","","");
		} catch (SQLException e) {
			e.printStackTrace();
		}  
	}
}

@@ -176,112 +176,554 @@
  %0D%0A%09
-%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09//Class.forName(c
+static%7B%0D%0A%09%09System.out.println(%22%E6%89%A7%E8%A1%8Cstatic%E4%BB%A3%E7%A0%81%E5%9D%97%22);%0D%0A%09%7D%0D%0A%09%0D%0A%09public ClassForNameTest()%7B%0D%0A%09%09System.out.println(%22%E6%89%A7%E8%A1%8C%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95%22);%0D%0A%09%7D%0D%0A%09%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09%0D%0A%09%09%0D%0A%09%09try %7B%0D%0A%09%09%09/**%0D%0A%09%09%09 * %E8%BF%99%E9%87%8C%E4%BC%9A%E6%89%A7%E8%A1%8Cstatic%E9%9D%99%E6%80%81%E4%BB%A3%E7%A0%81%E5%9D%97,%E4%B8%8D%E4%BC%9A%E6%89%A7%E8%A1%8C%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95%0D%0A%09%09%09 */%0D%0A%09%09%09Class.forName(%22com.gochinatv.cdn.api.basic.normal.C
 lass
+For
 Name
-)%0D%0A%09%09%0D%0A%09%09//com.mysql.jdbc.Driver
+Test%22);%0D%0A%09%09%09Class.forName(%22com.mysql.jdbc.Driver%22);%0D%0A%09%09%7D catch (ClassNotFoundException e1) %7B%0D%0A%09%09%09e1.printStackTrace();%0D%0A%09%09%7D%0D%0A%09%09//String s1=%22zhuhu%22;%0D%0A%09%09//String s2=%22zhu%22+%22hu%22;%0D%0A%09%09//System.out.println(s1==s2);%0D%0A%09%09//System.out.println(s1==s1.intern());
 %0D%0A%09%09

测试Class.forName