Types of Java programs have ()
A. Classes (Class)
B.applet
C.application
D.servlet
Answer: BCD
The following statements are correct ()
A. Environment variables can be specified when compiling source code
B. When compiling a program, the environment variables that you can specify do not include the class path
C.javac can compile several Java source files at a time
D.javac.exe can specify which directory the compilation results are to be placed in (directory)
Correct answer: A C D
The following statements are wrong ()
A. An array is an object
b arrays belong to a native class
C.int number=[]={31,23,33,43,35,63}
D. The size of the array can be arbitrarily changed
Correct answer: B C D
The following statements are wrong ()
A. Use this in a class method to invoke the class method of this class
B. Invoking the class method of this class in a class method can be called directly
C. Only class methods in this class can be called in a class method
D. Never invoke an instance method in a class method
Correct answer: A C D
The following statements are wrong ()
A.java Object-oriented language allows individual processes and functions to exist
B.java Object-oriented language allows separate methods to exist
Methods in the C.java language belong to members in the Class (member)
A method in a D.java language must be subordinate to a class (object), and the calling method is the same as a procedure or function
Correct answer: A B C
The following statements are wrong ()
A. Java class files that can be successfully run by Java.exe must have a main () method
B.J2SDK is the Java API
C.appletviewer.exe can run the. jar file with the JAR option
D. Java class files that can be successfully run by Appletviewer must have a main () method
Correct answer: B C D
Types of programs in Java