摘要:
1、连接数据库 命令行连接 1. mysql -u root -p123456 --连接数据库2. update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localho 阅读全文
摘要:
static关键字详解 public class Person { { System.out.println("匿名代码块"); } static { System.out.println("静态代码块"); } public Person() { System.out.println("构造方法" 阅读全文
摘要:
面向对象编程 回顾方法的调用 如果方法没有static,则需要实例化一个对象 (也就是new一个对象): public class Demo03 { public static void main(String[] args) { Demo03 demo03 = new Demo03(); int 阅读全文