下面属于Applet的getAudio方法的正确形式的是()
A.publicAudiogetAudioClip()
B.publicAudiogetAudioClip(URLurl)
C.publicAudiogetAudioClip(Stringname)
D.publicAudiogetAudioClip(URLurl,Stringname)
A.publicAudiogetAudioClip()
B.publicAudiogetAudioClip(URLurl)
C.publicAudiogetAudioClip(Stringname)
D.publicAudiogetAudioClip(URLurl,Stringname)
第1题
A.AudioClipsound=getAudio(getDocumentBase,"bark.au")
B.AudioClipsound=getAudio(getDocumentBase(),"bark.au")
C.AudioClipsound=getAudio(getCodeBase,"bark.au")
D.AudioClipsound=getAudio(getCodeBase(),"bark.au")
第3题
下面是用户程序对Applet类中方法paint()的重新定义,请在横线处填入正确的语句。 public void paint(Graphics g) {g.【 】(“你好!”,10,20);}
第4题
从下面提供的答案中选出应填入下列英文语句中______内的正确答案。
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.
第5题
第6题
第7题
下面属于表单方法名(非事件名)的是
A) Init
B)Release
C)Destroy
D)Caption
第11题
A.正确
B.错误