What are the exercises for the Java written test?
This article introduces the relevant knowledge of "what are the Java written exam exercises?". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. The following legal identifiers are _.
A) & abr B) (stati) C) 8ADDF D) $341
2. The following legal identifiers are _.
A) * AQabr B)! stati C) A_DEF D)% 341
3. The following legal identifiers are _.
A)? DDDD B) stati C) static D) 341
4. The following legal identifiers are _.
A) _ 436abr B) = read C) extends D) abstract
5. The following legal identifiers are _.
A) default B) # W23 C) @ adef D) $341
6. The following hexadecimal integers are _.
A) 0176 B) 0xC5 C) 6590 D) f178
7. The following is _ for escaping newline characters.
A)\ nB)\\ nC) 'n'D) "n"
8. The following represents the escape carriage return character is _.
A) "r" B)\\ r C)'r'D)\ r
9. The legal definition of the following constant is _.
A) int TIMKF=1024 B) char TIMKF= "1024"
C) final int TIMKF= 1024 D) byte TIMKF='1024'
10. The following packages that belong to the java.lang.Number class are _.
A) java.lang.Byte B) java.lang.Object
C) java.lang.Boolean D) java.lang.Character
11. Operator?: belongs to _.
A) unary operator B) binary operator C) ternary operator D) Quaternion operator
12 gives the following code snippet:
If (x > 0) {System.out.println ("Hello.");}
Else if (x >-3) {System.out.pirntln ("I am Tom.");}
Else {System.out.println ("How are you?");}
Will the string "How are you?" be printed? The range of x is _.
A) x > 0 B) x >-3 C) x