1、JAVA笔试题(一)(60分钟)一、不定项选择题(3分*20=60分)1、Which declarations of identifiers are legal?A. $personsB. TwoUsersC. *pointD. thisE. _endline2、Which are not Java keywords?A. TRUEB. sizeofC. constD. superE. void3、Which are not Java primitive types?A. shortB. BooleanC. unitD. float4、whatisthereturntype
2、ofJavaspecifiedexecutionmethodmain()?A. intB. voidC. BooleanD. static 5、Which of the following fragments might cause errors?A. String s = "Gone with the wind";B. String s = "Gone with the wind"; String t = " good ";String t; String k = s + t;t = s[3] + "one";C. String s = "Gone with th
3、e wind";D. String s = "home directory"; String standard = s.toUpperCase();String t = s - "directory".6、Which layout manager is usedwhen the frame is resized the buttons's position in the Frame might be changed?A. BorderLayoutB. FlowLayoutC. CardLayoutD. GridLayout7、Which will display if
7、ontofailE.Anerroratline11causescompilationtofail10、Which statements about thread are true?A. Once a thread is created, it can star running immediately.B. To use the start() method makes a thread runnable, but it does not necessarily start immediately.C. When a