标签:int 关键字 public 代码 coding str ack === object
package com.oop.demo7;
import static java.lang.Math.random;
public class Application {
public static void main(String[] args) {
Person p1 = new Person();
System.out.println("=================");
Person p2 = new Person();
System.out.println(random());
}
}
package com.oop.demo7;
public class Person {
{
System.out.println("匿名代码块");
}
static
{
System.out.println("static coding block");
}
public Person() {
System.out.println("object initiated.");
}
}
标签:int 关键字 public 代码 coding str ack === object
原文地址:https://www.cnblogs.com/langtaoshuo/p/14051149.html