1.创建一个类的对象,我们使用的关键字是?

1.创建一个类的对象,我们使用的关键字是?
2.需要定义一个常量,那么使用的关键字是?
3.定义Max类,求两个数的最大值,创建该类的对象,并调用方法。
4.若a的值为3,下列程序段被执行后,c的值是?
int c=1;
if(a>0)
if(a>3)
c=2;
else c=3;
else c=4;
4.

1.class
2.final
3.

package test;

public class Max {
    public static void main(String[] args) {
        Max max = new Max();
        System.out.println(max.max(1, 2));
    }

    public int max(int a, int b) {
        return a > b ? a : b;
    }

}

4.3