摘要:
package cn.itcast.jdbc;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;import java.sql.Statement;public class jd 阅读全文
摘要:
CREATE TABLE clify ( cid INT PRIMARY KEY AUTO_INCREMENT,NAME VARCHAR(15) );SELECT *FROM clify;INSERT INTO clify VALUES (NULL,'自然风景'),(NULL,'城市风景'),(NU 阅读全文
摘要:
//方式一 通过运行时类的属性调用Class类Class clazz1 = Person.class;System.out.println(clazz1);//方式二 通过运行时类的对象,调用getClass()Person p1=new Person();Class clazz2 = p1.get 阅读全文
摘要:
package itheima_05;public class Demo02 { public static void main(String[] args) { int a=1; int b=0; test(a,b); } public static void test(int a,int b){ 阅读全文
摘要:
package itheima_05; public class Demo01 { public static void main(String[] args) { int a=1; int b=0; //如果捕获多个异常,从小到大 try { //监控区域 System.out.println(a 阅读全文
摘要:
接口 public abstract 可以多实现 没有方法体 没有构造方法 不能被实例化 接口里的属性 public statiic final(常量) 必须重写里面的所有方法 阅读全文
摘要:
package itheima_04; public class Demo01 { private String name; private int age; public static void run(){ //go(); //静态方法不可以调用非静态方法 System.out.println( 阅读全文