A、编译错误:没有找到构造器Child()
B、编译错误:没有找到构造器Parent1()
C、正确运行,没有输出值
D、正确运行,输出结果为:parent2
A、编译错误:没有找到构造器Child()
B、编译错误:没有找到构造器Parent1()
C、正确运行,没有输出值
D、正确运行,输出结果为:parent2
A、13个字节码文件,扩展名为.class
B、1个字节码文件,扩展名为.class
C、3个字节码文件,扩展名为.java
D、3个字节码文件,扩展名为.class
import java,awt,*;
import java.awt.event.*;
public class welcomenYou{
public static void main(String args[])
{
new FrameInOut();
}
}
class FrameInOut extends Frame implements ActionListener
{
Label prompt;
TextField input,output;
Button btnn;
void FramInOut()
{
prompt=new Label("Please input your name");
input:new TextField(10);
output=new TextField(25);
btnn:new Button("Class");
______(new FlowLayout());
add(prompt);
add(input);
add(output);
add(btnn);
input.addActionListener(this);
btnn.addActionListener(this);
setSize(300.200);
show();
}
public void actionperformed(ActionEvent e)
if(e.getSource() = = input)
output.setText(input.getText()+"Welcome you!");
else
{
dispose();
system.exit(0);
}
}
}
import java.io.*;
public class ArrayTest{
public static void main(String args[]){
int i;
int a[] = new int[5];
for(i=0;i<5;i++)
a=i;
for(______i>=0; i--)
System. out .println ("a ["+i+"] ="a) ;
}
}
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!