- 浏览: 458806 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (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 1027数据库部分 Q: What is SQL? ... -
EJB面试题
2011-06-22 10:54 1096Q: What are the different kinds ... -
java中的servlet面试题
2011-06-22 10:43 1078Q: Explain the life cycle metho ... -
java中JSP的面试题
2011-06-22 10:22 1507Q: What is a output comment? (可 ... -
彻底搞清楚java的内部类
2011-06-15 10:47 1454内部类允许在一个类中 ... -
细说java(java中的浮点数十六进制表示)
2011-06-12 16:48 3510java中浮点数不能用八进制表示,但可以用十六进制表示,只能用 ... -
SCJP试题
2011-06-09 16:14 1144package scjp; public class T ... -
java面试题解惑 之 继承、多态、重载、重写
2011-06-03 09:36 1271继承、多态、重载、重写 继承 java中有三种类:类,抽象类, ... -
java面试题解惑 之 多线程
2011-06-02 17:24 9511,多线程 线程或者说 ... -
java面试题解惑 之变量初始顺序,变量覆盖,字符串池,final,finally区别
2011-06-02 16:26 7631,变量初始化顺序 package com.qdu.sun; ... -
java解惑(Map的使用,静态导入方法,线程中断interrupted与线程死锁)
2011-05-17 12:38 1364Map的使用 package other; import ... -
java 继承的一个问题(想不明白)
2011-04-13 17:03 884java中的继承问题,以为是学会了java,结果最简单的一个j ... -
java解惑(谜题76。。)
2011-03-09 11:22 1179谜题76:乒乓public class PingPong { ... -
java解惑(谜题60,65)
2011-03-08 15:52 887一行以毙之 1,编写一个 ... -
java解惑(谜题66。。。)
2011-02-28 20:54 913谜题66:一件私事 class Base{ public ... -
java解惑(谜题61。。。)
2011-02-28 20:17 886谜题61:日期游戏 import java.util.Cal ... -
java解惑(谜题56到。。库之谜)
2011-02-28 19:41 829谜题56:大问题 import jav ... -
java解惑(谜题49。。)
2011-02-27 10:52 925谜题49:比生命更大 import java.util.Cal ... -
java解惑(谜题41到谜题)
2011-02-27 10:18 885谜题41:域和流 下面的 ... -
谜题36-谜题
2011-02-25 10:55 860谜题36:优柔寡断 public ...
相关推荐
Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案Java集合面试题及答案...
java面试题集合java面试题集合java面试题集合java面试题集合java面试题集合java面试题集合
Java集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdfJava集合面试题汇总.pdf...
java集合类面试题总结
内含大量java集合框架方面常被面试官问到的经典面试题。
Java集合/泛型面试题 Java异常面试题 Java中的IO与NIO面试题 Java反射面试题 Java序列化面试题 Java注解面试题 多线程&并发面试题 JVM面试题 Mysql面试题 Redis面试题 Memcached面试题 MongoDB面试题 Spring面试题 ...
Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合已经答案Java开发面试题集合...
Java集合面试题 52道.pdf
大公司最喜欢问的Java集合类面试题,找工作有帮助
java集合常见面试题附带答案解析
最全的j2EE面试题,题量大、经典,是我面试的整理试题 1、java笔试题大集合 2、各个公司面试题 3、J2EE初学者面试题 4、J2EE面试题(打码查错题) 5、java_华为笔试题 ...15、张孝祥整理Java就业面试题大全
java软件工程师面试试题集合 java软件工程师面试试题集合
02-Java集合容器面试题(2020最新版)-重点.pdf
Java集合框架常见面试题.pdf
Java程序员集合框架面试题-java集合框架面试题.docx
最全java面试教程集合,含java面试题精讲ppt、大厂Java面试300题、基本java简历模板等 最全java面试教程集合,含java面试题精讲ppt、大厂Java面试300题、基本java简历模板等 最全java面试教程集合,含java面试题精讲...
本资源主要包括Java基础知识、Java集合、多线程、IO操作、网络编程、数据库等方面的面试题目,以及一些实际应用场景下的编程题目。本资源所包含的面试题目丰富多彩,有些题目侧重于Java基础知识的考察,而有些题目则...
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开发相关类求职必备书籍。