- 浏览: 467739 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (272)
- java基础 (59)
- struts (8)
- spring (8)
- 数据库 (8)
- java 网络编程 (29)
- hibernate (3)
- JavaScript (10)
- 日志管理 (2)
- jsp (4)
- servlet (7)
- xml (4)
- ajax (2)
- web service (4)
- 算法与数据结构 (13)
- java 反射机制 (11)
- java 泛型 (3)
- java I/O (8)
- java 线程 (12)
- JavaEE (6)
- java解惑 (33)
- 工具 (5)
- MyEclipse编程实践 (1)
- OSGI (2)
- 设计模式 (9)
- 正则表达式 (0)
- EJB (3)
- Ubuntu linux (6)
- Android (1)
- web前端 (2)
- 找工作 (1)
- SCA (1)
- maven (1)
- 缓存 (1)
- json (1)
- javamail (1)
- 工作笔记 (2)
最新评论
-
霜花似雪:
博主可以分享一下源码吗?
使用maven构建web项目实例 -
王庆波-行:
很好的demo!
memcache使用实例 -
surpassno:
大写的牛逼
java可视化显示内存使用情况 -
zhulin0504:
怎么访问NetEcho.html页面呀???
applet与servlet的网络通信 -
springdata:
java多线程实例demo源代码下载:http://www.z ...
java多线程例子
Q: What is the Collections API?
A: The Collections API is a set of classes and interfaces that support operations on collections of objects.
集合API时一系列类和接口,用于支持对集合对象的操作。
Q: What is the List interface?
A: The List interface provides support for ordered collections of objects.
List接口提供对有序对象集合的操作支持。
Q: What is the Vector class?
A: The Vector class provides the capability to implement a growable array of objects.
Vector即向量,可以实现对象数组容量的增加。一般的数组容量是一定的。
Q: What is an Iterator interface?
A: The Iterator interface is used to step through the elements of a Collection .
用于访问一个集合中的元素的接口,即迭代器。
Q: Which java.util classes and interfaces support event handling?
A: The EventObject class and the EventListener interface support event processing.
Q: What is the GregorianCalendar class?
A: The GregorianCalendar provides support for traditional Western calendars
Q: What is the Locale class?
A: The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region .
Q: What is the SimpleTimeZone class?
A: The SimpleTimeZone class provides support for a Gregorian calendar .
Q: What is the Map interface?
A: The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.
Q: What is the highest-level event class of the event-delegation model?
A: The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.
Q: What is the Collection interface?
A: The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates.
Q: What is the Set interface?
A: The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
集合不能放入相同的元素。
Q: What is the typical use of Hashtable?
A: Whenever a program wants to store a key value pair, one can use Hashtable.
Q: I am trying to store an object using a key in a Hashtable. And some other object already exists in that location, then what will happen? The existing object will be overwritten? Or the new object will be stored elsewhere?
A: The existing object will be overwritten and thus it will be lost.
Q: What is the difference between the size and capacity of a Vector?
A: The size is the number of elements actually stored in the vector, while capacity is the maximum number of elements it can store at a given instance of time.
size 是Vector中元素的个数,capacity 是Vector在给定的实例下的最大存储元素个数。
Q: Can a vector contain heterogenous objects?
A: Yes a Vector can contain heterogenous objects. Because a Vector stores everything in terms of Object.
vector 可以放置异质的元素,如可以同时放置Integer和String。
Q: Can a ArrayList contain heterogenous objects?
A: Yes a ArrayList can contain heterogenous objects. Because a ArrayList stores everything in terms of Object.
Q: What is an enumeration?
A: An enumeration is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained. It is a construct which collection classes return when you request a collection of all the objects stored in the collection. It allows sequential access to all the elements stored in the collection.
Q: Considering the basic properties of Vector and ArrayList, where will you use Vector and where will you use ArrayList?
A: The basic difference between a Vector and an ArrayList is that, vector is synchronized while ArrayList is not. Thus whenever there is a possibility of multiple threads accessing the same instance, one should use Vector. While if not multiple threads are going to access the same instance then use ArrayList. Non synchronized data structure will give better performance than the synchronized one.
Vector与ArrayList 不同之处在于,前者是同步的,而后者不是。在多线程访问同一个实例下,可以使用Vector。但是不同步的ArrayList 在性能上会好一些。
Q: Can a vector contain heterogenous objects?
A: Yes a Vector can contain heterogenous objects. Because a Vector stores everything in terms of Object.
A: The Collections API is a set of classes and interfaces that support operations on collections of objects.
集合API时一系列类和接口,用于支持对集合对象的操作。
Q: What is the List interface?
A: The List interface provides support for ordered collections of objects.
List接口提供对有序对象集合的操作支持。
Q: What is the Vector class?
A: The Vector class provides the capability to implement a growable array of objects.
Vector即向量,可以实现对象数组容量的增加。一般的数组容量是一定的。
Q: What is an Iterator interface?
A: The Iterator interface is used to step through the elements of a Collection .
用于访问一个集合中的元素的接口,即迭代器。
Q: Which java.util classes and interfaces support event handling?
A: The EventObject class and the EventListener interface support event processing.
Q: What is the GregorianCalendar class?
A: The GregorianCalendar provides support for traditional Western calendars
Q: What is the Locale class?
A: The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region .
Q: What is the SimpleTimeZone class?
A: The SimpleTimeZone class provides support for a Gregorian calendar .
Q: What is the Map interface?
A: The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.
Q: What is the highest-level event class of the event-delegation model?
A: The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.
Q: What is the Collection interface?
A: The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates.
Q: What is the Set interface?
A: The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
集合不能放入相同的元素。
Q: What is the typical use of Hashtable?
A: Whenever a program wants to store a key value pair, one can use Hashtable.
Q: I am trying to store an object using a key in a Hashtable. And some other object already exists in that location, then what will happen? The existing object will be overwritten? Or the new object will be stored elsewhere?
A: The existing object will be overwritten and thus it will be lost.
Q: What is the difference between the size and capacity of a Vector?
A: The size is the number of elements actually stored in the vector, while capacity is the maximum number of elements it can store at a given instance of time.
size 是Vector中元素的个数,capacity 是Vector在给定的实例下的最大存储元素个数。
Q: Can a vector contain heterogenous objects?
A: Yes a Vector can contain heterogenous objects. Because a Vector stores everything in terms of Object.
vector 可以放置异质的元素,如可以同时放置Integer和String。
Q: Can a ArrayList contain heterogenous objects?
A: Yes a ArrayList can contain heterogenous objects. Because a ArrayList stores everything in terms of Object.
Q: What is an enumeration?
A: An enumeration is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained. It is a construct which collection classes return when you request a collection of all the objects stored in the collection. It allows sequential access to all the elements stored in the collection.
Q: Considering the basic properties of Vector and ArrayList, where will you use Vector and where will you use ArrayList?
A: The basic difference between a Vector and an ArrayList is that, vector is synchronized while ArrayList is not. Thus whenever there is a possibility of multiple threads accessing the same instance, one should use Vector. While if not multiple threads are going to access the same instance then use ArrayList. Non synchronized data structure will give better performance than the synchronized one.
Vector与ArrayList 不同之处在于,前者是同步的,而后者不是。在多线程访问同一个实例下,可以使用Vector。但是不同步的ArrayList 在性能上会好一些。
Q: Can a vector contain heterogenous objects?
A: Yes a Vector can contain heterogenous objects. Because a Vector stores everything in terms of Object.
发表评论
-
数据库及struts面试题
2011-06-22 11:07 1059数据库部分 Q: What is SQL? ... -
EJB面试题
2011-06-22 10:54 1125Q: What are the different kinds ... -
java中的servlet面试题
2011-06-22 10:43 1110Q: Explain the life cycle metho ... -
java中JSP的面试题
2011-06-22 10:22 1544Q: What is a output comment? (可 ... -
彻底搞清楚java的内部类
2011-06-15 10:47 1507内部类允许在一个类中 ... -
细说java(java中的浮点数十六进制表示)
2011-06-12 16:48 3566java中浮点数不能用八进制表示,但可以用十六进制表示,只能用 ... -
SCJP试题
2011-06-09 16:14 1179package scjp; public class T ... -
java面试题解惑 之 继承、多态、重载、重写
2011-06-03 09:36 1301继承、多态、重载、重写 继承 java中有三种类:类,抽象类, ... -
java面试题解惑 之 多线程
2011-06-02 17:24 9921,多线程 线程或者说 ... -
java面试题解惑 之变量初始顺序,变量覆盖,字符串池,final,finally区别
2011-06-02 16:26 7991,变量初始化顺序 package com.qdu.sun; ... -
java解惑(Map的使用,静态导入方法,线程中断interrupted与线程死锁)
2011-05-17 12:38 1396Map的使用 package other; import ... -
java 继承的一个问题(想不明白)
2011-04-13 17:03 916java中的继承问题,以为是学会了java,结果最简单的一个j ... -
java解惑(谜题76。。)
2011-03-09 11:22 1221谜题76:乒乓public class PingPong { ... -
java解惑(谜题60,65)
2011-03-08 15:52 919一行以毙之 1,编写一个 ... -
java解惑(谜题66。。。)
2011-02-28 20:54 956谜题66:一件私事 class Base{ public ... -
java解惑(谜题61。。。)
2011-02-28 20:17 916谜题61:日期游戏 import java.util.Cal ... -
java解惑(谜题56到。。库之谜)
2011-02-28 19:41 859谜题56:大问题 import jav ... -
java解惑(谜题49。。)
2011-02-27 10:52 954谜题49:比生命更大 import java.util.Cal ... -
java解惑(谜题41到谜题)
2011-02-27 10:18 922谜题41:域和流 下面的 ... -
谜题36-谜题
2011-02-25 10:55 901谜题36:优柔寡断 public ...
相关推荐
Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案...
Java集合/泛型面试题 Java异常面试题 Java中的IO与NIO面试题 Java反射面试题 Java序列化面试题 Java注解面试题 多线程&并发面试题 JVM面试题 Mysql面试题 Redis面试题 Memcached面试题 MongoDB面试题 Spring面试题 ...
Java 集合类面试题总结 Java 集合类是 Java 语言中的一种重要组件,用于存储和操作数据。下面总结了 Java 集合类的一些常见问题和答案。 HashMap 和 Hashtable 的区别 HashMap 和 Hashtable 都是 Java 中的散列表...
Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合...
Java作为一门广泛使用的编程语言,其中高级面试题往往涵盖了多方面的知识点,旨在考察候选人的技术深度和广度。以下是对这些面试题的详细解析: 1. **内存管理与垃圾回收** - Java的内存分为堆内存(Heap)和栈...
在Java集合面试题中,常见的问题包括ArrayList和LinkedList的区别、HashMap和ConcurrentHashMap的区别、数据结构的特点等等。了解这些问题可以帮助我们更好地回答面试题,同时也可以帮助我们更好地理解Java集合。 ...
"j.doc"和"Java陷阱一箩筐----面试题集.doc"很可能包含了面试中常见的陷阱问题,比如Java内存模型、垃圾回收机制、并发编程中的同步与锁,以及优化技巧等。这些问题旨在测试求职者在实际开发中解决问题的能力。 ...
最全的j2EE面试题,题量大、经典,是我面试的整理试题 1、java笔试题大集合 2、各个公司面试题 3、J2EE初学者面试题 4、J2EE面试题(打码查错题) 5、java_华为笔试题 ...15、张孝祥整理Java就业面试题大全
最全java面试教程集合,含java面试题精讲ppt、大厂Java面试300题、基本java简历模板等 最全java面试教程集合,含java面试题精讲ppt、大厂Java面试300题、基本java简历模板等 最全java面试教程集合,含java面试题精讲...
以上知识点是针对中高级Java开发人员在架构师面试中经常遇到的问题,考察了应聘者对Java集合框架的熟练程度、SQL语言的掌握、对持久层框架的应用能力以及编写业务逻辑代码的综合能力。回答此类面试题时,应尽量提供...
根据提供的文档内容,文件是关于Java集合框架的面试题知识点总结。以下是Java集合框架的知识点详述: Java集合框架主要包括Collection接口和Map接口两大分支。Collection接口主要包括List、Set以及Queue三个子接口...
java面试题集合,设计初级,中级,高级面试中的比较经典的问题,包括概念题,算法题,编程题等
│ Java面试题04.java中int占几个字节.mp4 │ Java面试题05.java面向对象的特征.mp4 │ Java面试题06.装箱和拆箱.mp4 │ Java面试题07.==和equals的区别.mp4 │ Java面试题08.String.mp4 │ Java面试题09.讲一下java...
本资源主要包括Java基础知识、Java集合、多线程、IO操作、网络编程、数据库等方面的面试题目,以及一些实际应用场景下的编程题目。本资源所包含的面试题目丰富多彩,有些题目侧重于Java基础知识的考察,而有些题目则...
7、java集合面试题.pdf。8、Java框架部分面试题.pdf。9、java面接.pdf。10、JAVA面试题集锦1.pdf。11、JAVA面试题集锦2.pdf。12、java算法面试题.pdf。13、程序员面试宝典.pdf。14、代码与编程题.pdf。15、各大公司...
本压缩包文件"java集合常见面试题.rar"包含了针对这个主题的常见问题及答案解析,旨在帮助求职者准备相关面试。 1. **集合接口** - **List**:有序的集合,元素可以重复,允许有重复的元素,例如ArrayList和...
Java集合框架常见面试题 剖析⾯试最常⻅问题之 Java 集合框架 包含以下几个模块: 1、集合概述 2、Collection子接口之List 3、Collection子接口之Set 4、Map接口 5、Collection工具类 6、其他重要问题
Java集合是Java编程语言提供的一套用于数据存储和操作的接口与类的集合。根据Java集合框架,集合主要可以分为两大类:Collection集合与Map集合。Collection集合主要包括List、Set和Queue三大子接口,而Map则是独立于...
本篇文章将着重介绍`Collection`部分,并探讨一些在大公司面试中常见的Java集合类相关问题。 #### 二、Collection接口及其子接口 - **Collection**:这是最基础的集合接口,用于表示一组对象。根据不同的实现,...