大公司的Java面试题集

在Java语言中,() 包是自动导入的。

A.javA.lang

B.javA.awt

C.javA.applet

D.javA.io


参考答案:A


提供Java存取数据库能力的包是()

A.java.sql

B.java.awt

C.java.lang

D.java.swing


正确答案:A


在Java中,由Java编泽器自动导入而无需在程序中用import导入的包是( )。

A.java.applet

B.java.awt

C.java.util

D.java.lang


正确答案:D


Java语言提供处理不同类型流的包是( )。

A.java.sql

B.java.util

C.java.math

D.java.io


正确答案:D
解析:Java的I/O功能主要是通过输入输出类库java.io包实现的,java.io包中包括了可以处理字节流、字符流、文件流和对象流等的类。


在Java中,实现用户界面功能的包是

A.java.applet

B.java.transaction

C.java.util

D.java.awt


正确答案:D


a0a2a1a4a3a6a5 Java a7a9a8a4a10a12a11 a13a15a14a6a16a2a17a6a18a15a19a21a20a23a22a6a18a2a19a6a24a6a22a15a25a27a26a15a18a15a19a29a28a31a30a15a32a34a33a36a35a38a37a6a39a15a40a15a41a43a42a45a44a47a46a49a48a6a50a6a48a2a51a6a52a15a53a6a54 a28a31a18a15a19a27a55a6a56a57a20a31a58a6a59a6a40a61a60a62a41a63a28a65a64a27a66a4a67a15a68 IBM, E*Trade, Siebel, Motorola, SUN, a35a70a69a6a71 a72a27a73a27a74 a64a6a66a21a33 a18a15a19a27a75a6a76a2a77a79a78a4a80a79a81a2a82a15a83a63a28a15a20 a72 a28a36a41a47a42a84a22a63a28a9a85a2a86a2a87a79a81a57a88a90a89a6a91a27a92a94a93a79a33a95a22a6a96a15a97a15a98a79a99a57a28a15a20 a22a57a100a65a18a15a101a6a102a63a28a2a20a104a103a15a22a15a96a61a105a107a106a6a108a61a60a4a28a2a20a110a109a15a102 IDE a28a31a111a6a112a6a113a27a114 (a115a6a116a15a102a15a117a6a118a27a119a6a120a4a121a6a122a21a20 a123 a85a27a124a57a125 )a33a38a126a34a35a70a127a27a128a15a102a15a129a15a130a6a131a6a132a6a133a57a20a31a134a79a85a2a17a15a135a137a136a2a123a2a59a6a40a61a60a107a41a27a138a137a139a12a140 IDE a44a15a141a137a142a63a33a38a102 a143a6a144 a96a15a145a6a146a15a87a79a147a15a37a15a148a6a149a57a150a31a151a6a59a6a40a61a60a62a41a63a20a152a96a15a18a15a19a29a125a36a127a6a128a21a153a36a154a79a39a2a155a15a41a63a150a31a151a27a85a15a148a15a149a15a113a6a22a6a82 a139a12a102a6a24a6a156a2a157a27a158a61a159a107a160a63a161a79a33 a100a65a162a15a59a6a40a27a138a15a75 Java a28a36a163a27a164a15a41a21a20a31a165a27a40a15a18a15a19a29a28a36a166 a73a137a167a12a168 a85a4a169a170a60a70a102 Hibernate a22 a167a12a171 a172 a20 Eclipse a28a36a173a6a174a27a175a15a176a6a177a15a178a57a20a180a179 command design patterna20a182a181a15a183a27a138a6a75a2a184a27a39a27a185a94a161a2a20a182a186a6a187 a188 a60a4a28a31a24a6a75a2a163a6a189a27a190a15a191a34a33a23a192 a74 a129a63a161a31a59a15a40a15a163a6a189a63a20a62a48a15a51a27a52a15a193a15a194a79a39a15a195a21a20a70a196a15a128a15a24a15a197a6a96a27a39a6a198a4a163a6a189 a190a15a191a63a28a137a60a62a41a79a37a57a20a31a50a79a199a2a200a15a201a15a202a34a33 a203 a161a38a204a27a106a27a114a15a123a57a20a12a205a4a206a27a207a4a41a61a33 a208 a39a94a20a31a209a6a209 final, finally, finalize a28a2a210a65a192a29a33 final a140a27a211a6a212a21a213a36a214a15a215a57a20a45a216a6a32a6a50a4a217a29a20a45a178a6a192a2a218a27a219a15a214a15a215a27a85a15a82a6a220a57a20a45a216a6a32a6a85a15a82a6a221a15a222a57a20a49a217a137a85a15a82 a223a15a224 a33 finally a75a15a225a79a226a15a227a6a81a4a228a27a229a79a196a2a230a21a28a9a39a6a177a15a178a57a20a31a218a27a219a79a231a2a75a2a232a15a233a34a33 finalize a75 Object a217a34a28a31a39a2a174a6a216a6a32a21a20a31a96a6a234a6a235a27a236a2a237a6a238a15a232a15a233a63a28a15a239a9a240a2a169a27a241a6a140a15a156a21a150a12a236a12a25a6a242a63a28a31a131 a216a6a32a21a20a9a82a29、a35a38a221a6a222a15a131a6a216a6a32a2a58a6a243a6a234a6a235a79a236a4a237a21a239a27a28a38a71a27a181a137a244a65a245a21a150a12a236a94a20a9a246a15a127a27a247a29a248a70a132a15a249a27a250a29a33 a208a27a251 a20 Anonymous Inner Class (a252a4a253a61a254a70a177a12a217 ) a75a15a115a15a82a34a35 extends( a223a15a2、24 ) a71 a72 a217a29a20a255a75 a115a15a82a34a35 implements(a92a4a154 )interface(a0a2a1 )? a82a34a35 a223a15a224 a71a27a181a2a217a79a179a15a130a6a176a2a71a6a181a3a0a2a1a36a20a31a96 swing a4a3a5a29a125a9a226a2a140a6a131a6a216a7a6a29a33 a208 a173a21a20 Static Nested Class a50 Inner Class a28a31a85a9a8a4a20a65a123a3a10a12a11 a167 a11 a203 (a18a2a19a15a41a27a22a63a28a31a113 a13a7a14 ) a33 Static Nested Class a75a2a156a79a212a57a213a16a15a18a17a20a19a22a21 statica23a38a28a94a254a107a177a12a2


在Java中,字符串由java.lang.String和( )定义。

A.java.lang.StringChar

B.java.lang.StringBuffer

C.java.io.StringChar

D.java.io.StringBuffer


正确答案:B


Youneedtostoreelementsinacollectionthatguaranteesthatnoduplicatesarestored.Whichtwointerfacesprovidethatcapability?()

A.Java.util.Map

B.Java.util.Set

C.Java.util.List

D.Java.util.StoredSet

E.Java.util.StoredMap

F.Java.util.Collection


参考答案:B, D


Youneedtostoreelementsinacollectionthatguaranteesthatnoduplicatesarestoredandallelementscanbeaccessedinnaturalorder.Whichinterfaceprovidesthatcapability?()

A.Java.util.Map.

B.Java.util.Set.

C.Java.util.List.

D.Java.util.StoredSet.

E.Java.util.StoredMap.

F.Java.util.Collection.


参考答案:D


Whichtwointerfacesprovidethecapabilitytostoreobjectsusingakey-valuepair?()

A.Java.util.Map.

B.Java.util.Set.

C.Java.util.List.

D.Java.util.StoredSet.

E.Java.util.StoredMap.

F.Java.util.Collection.


参考答案:A, E


WhichcanbeusedtodecodecharSforoutput?()

A.Java.io.InputStream.

B.Java.io.EncodedReader.

C.Java.io.InputStreamReader.

D.Java.io.InputStreamWriter.

E.Java.io.BufferedInputStream.


参考答案:C


相关考题:

考题 class java {  public static void main(String [] java) {   for (int Java = 1; Java 〈 java.length; Java++)   System.out.print("java ");   }   }   和命令行:  java java java java java   结果为:()  A、javaB、java javaC、java java javaD、编译失败正确答案:D

考题 在Java中,字符串由java.lang.String和( )定义。A.java.io.StringCharB.java.io.StringBufferC.java.lang.StringCharD.java.lang.StringBuffer 正确答案:D解析:在Java中,字符串是作为对象出现的,由java.lang.String和java.lang.StringBuffer定义,分别用来处理长度不变和长度可变字符串,这两类都被定义为final。

考题 在Java中,由Java编译器自动导入而无需在程序中用import导入的包是( )。A.java.appletB.java.awtC.java.utilD.java.lang 正确答案:D解析: 本题考查Java中包的概念。Java中用import语句来导入包,但需注意的是,Java语言中的java.lang包是由编译器直接自动导入的,因此,编程时使用该包中的类,可省去import导入。使用其他包中的类,必须用impoa导入,选项 D为正确答案。

考题 下列属于Java核心包的一项是______。A.java.namingB.java.soundC.java.rmiD.java.math 正确答案:D

考题 单选题与page指令 等价的是()。A%@ import="“java.util.*" page=""%@ import="“java.text.*" page=""%@ import="“java.text.*" page=""%@ import="“java.util.*" page=""%@ import="“java.text.*" page=""%@ import="“java.util.*" page=""%@ page import= “java.util.* % %@ page import= “java.text.* “ % B%@ page import= “java.util.*”  ,  import= “java.text.* “ % C%@ page import= “java.util.* “  ;  % %@ page import= “java.text.* “  ; %D%@ page import= “java.util.* ; java.text.* “ %正确答案: C解析: 暂无解析

考题 FileOutputStream类属于Java的哪一个包? ( )A.java.utilB.java.ioC.java.nioD.java.awt 正确答案:B解析:FileOutputStream属于java. io包,FileOutputStream是字节流类,使用流类时必须导入java.io包。

考题 单选题class java {  public static void main(String [] java) {   for (int Java = 1; Java 〈 java.length; Java++)   System.out.print("java ");   }   }   和命令行:  java java java java java   结果为:()AjavaBjava javaCjava java javaD编译失败正确答案: A解析: 暂无解析

考题 容器类java.awt.container的父类是( )。A.java.awt.WindowB.java.awt.ComponentSXB 容器类java.awt.container的父类是( )。A.java.awt.WindowB.java.awt.ComponentC.java.awt.FrameD.java.awt.Panel 正确答案:B本题考查Java中容器类的概念。Container是-个类,实际上是Component的子类,因此容器本身也是-个构件,具有构件的所有性质,另外还具有放置其他构件和容器的功能。构件类(Component)是Java的图形用户界面的最基本的组成部分。

考题 Java程序默认引用的包是( )。 A.java.text包B.java.awt包C.java.lang包SXB Java程序默认引用的包是( )。A.java.text包B.java.awt包C.java.lang包D.java.util包 正确答案:CC。【解析】java.lang包提供Java编程语言进行程序设计的基础类。java.1an9包是编译器自动导入的。

考题 Java程序默认引用的包是( )。A.java.text包B.java.awt包C.java.lang包SXB Java程序默认引用的包是( )。A.java.text包B.java.awt包C.java.lang包D.java.util包 正确答案:Cjava.lang包提供Java编程语言进行程序设计的基础类。java.lang包是编译器自动导入的。
最新考题