Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Java test questions for answers
Java test questions for answers
So many!

Gongyuanhou

ABC C C C

British Broadcasting Corporation

Chronology of a.d.

Everyone else, go on. .

1、javac java

2, classpath (has long been unsuitable, now windows is directly installed and written into the registry, and no environment variables are needed! )

3,83 plastic is short and int long.

4. Integer part and decimal part constitute decimal representation and scientific representation.

5、System.err.println()

6, 6 kinds of operators, arithmetic operators, relational operators, bit operators, logical operators, assignment operators and other operators.

7, packaging component testing

8. New, Running, Running, Waiting/Blocking/Hibernating, Death

9. I have no idea. . .

10, input stream, output stream, reader, writer

I just saw other answers. Let me explain my own answer:

I chose C for question 10, because the main topic is java applet, not applet. Java applets don't need to rely on any browser, and even applets don't need to rely on browsers.

Question 18, I choose C, because the construction method must have the same name as the class. Some friends must be wrong to choose B, but the method parameters can be different.

Question 20: I chose the wrong C, which should be B. A java source file can only have one public class definition.

I also gave some explanations about other different places:

6. There should be six types of operators, the first five types have no objection, and there is another type, such as instanceOf.

As for 8, the state of the thread, what the state is called is actually not very important, what matters is understanding, hehe.