Types of programs in Java

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.