下面属于Applet的play方法的正确形式的是()
A.publicvoidplay()
B.publicvoidplay(URLurl)
C.publicvoidplay(Stringname)
D.publicvoidplay(URLurl,Stringname)
A.publicvoidplay()
B.publicvoidplay(URLurl)
C.publicvoidplay(Stringname)
D.publicvoidplay(URLurl,Stringname)
第1题
A.publicAudiogetAudioClip()
B.publicAudiogetAudioClip(URLurl)
C.publicAudiogetAudioClip(Stringname)
D.publicAudiogetAudioClip(URLurl,Stringname)
第2题
下面是用户程序对Applet类中方法paint()的重新定义,请在横线处填入正确的语句。 public void paint(Graphics g) {g.【 】(“你好!”,10,20);}
第7题
倘若用户退出浏览器或者重载包含Applet的主页时,浏览器首先调用Applet的方法 stop(),接着执行【 】方法释放Applet所占的资源。
第8题
从下面提供的答案中选出应填入下列英文语句中______内的正确答案。
The most accurate and most boring way to(1)Java is that it is a new computer programming language developed by Sun Microsystems that creates(2)independent programs that can be distributed and run remotely. To run Java programs,a computer must have a Java interpreter. Currently(3)Java programs are small "applets" that are(3)as part of web pages.
When you use a Java(4)browser to view a Web page that includes a Java applet, the browser loads the applet onto your computer through your modem or network. Then the Java interpreter runs the applet, which could include animation or sound, on your computer rather than transmitting the code bit by bit over Internet. Afew thousand bytes of Java code can turn into a powerful program on your computer.
So an applet could include(5)with Java interpreter.
第10题
第11题
在定制Swing Applet的绘图功能时,不能直接改变相应Swing构件的paint()方法,而应该使用【 】方法。