Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the exercises for the Java written test?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report