<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0042)http://ilovelate.itpub.net/post/7368/40836 -->
<HTML lang=zh-CN dir=ltr xml:lang="zh-CN"
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>享受一种生活 | java面试题及答案(基础题122道,代码题19道)</TITLE>
<META http-equiv=Content-Type content=text/html;charset=GB2312>
<META content="MSHTML 6.00.2900.5945" name=GENERATOR>
<META http-equiv=Content-Language content=zh-CN><LINK title=Default
href="享受一种生活 java面试题及答案(基础题122道,代码题19道).files/grey.css" type=text/css
rel=stylesheet><LINK title="RSS 2.0"
href="http://ilovelate.itpub.net/rss/rss20/7368" type=text/xml
rel=alternate><LINK title="RSS 1.0"
href="http://ilovelate.itpub.net/rss/rss10/7368" type=text/xml
rel=alternate><LINK title="RSS 0.90"
href="http://ilovelate.itpub.net/rss/rss090/7368" type=text/xml
rel=alternate><LINK title="Atom 0.3"
href="http://ilovelate.itpub.net/rss/atom/7368" type=application/atom+xml
rel=alternate></HEAD>
<BODY>
<P class=Upgrade>This page looks plain and unstyled because you're using a
non-standard compliant browser. To see it in its best form, please <A
title="The Web Standards Project's Browser Upgrade initiative"
href="http://www.webstandards.org/upgrade/">upgrade</A> to a browser that
supports web standards. It's free and painless.</P>
<DIV id=Container>
<DIV id=Top>
<H1>享受一种生活</H1></DIV>
<DIV id=Topmenu><A href="http://ilovelate.itpub.net/">首页</A> | <A
href="http://ilovelate.itpub.net/album/7368/0">资源中心</A> | <A
href="http://ilovelate.itpub.net/admin.php">管理控制台</A> </DIV>
<DIV id=Main>
<DIV id=Sidebar-l>
<DIV class=Sidetitle>
<H4>博客日历</H4></DIV>
<DIV class=calendar>
<TABLE class=calMonth>
<THEAD>
<TR class=calMonthNav>
<TH class=calMonthBackward><A title="二月 2011"
href="http://ilovelate.itpub.net/archives/7368/201102">«</A></TH>
<TH class=calMonthCurrent colSpan=5>三月 2011</TH>
<TH class=calMonthForward><A title="四月 2011"
href="http://ilovelate.itpub.net/archives/7368/201104">»</A></TH></TR>
<TR class=calMonthHeader>
<TH scope=col abbr=星期一>一</TH>
<TH scope=col abbr=星期二>二</TH>
<TH scope=col abbr=星期三>三</TH>
<TH scope=col abbr=星期四>四</TH>
<TH scope=col abbr=星期五>五</TH>
<TH scope=col abbr=星期六>六</TH>
<TH scope=col abbr=星期日>日</TH></TR></THEAD>
<TBODY>
<TR>
<TD class=calMonthDay> </TD>
<TD class=calMonthDay>1</TD>
<TD class=calMonthDay>2</TD>
<TD class=calMonthDay>3</TD>
<TD class=calMonthDay>4</TD>
<TD class=calMonthDay>5</TD>
<TD class=calMonthDay>6</TD></TR>
<TR>
<TD class=calMonthDay>7</TD>
<TD class=calMonthDay>8</TD>
<TD class=calMonthDay>9</TD>
<TD class=calMonthDay>10</TD>
<TD class=calMonthDay>11</TD>
<TD class=calMonthDay>12</TD>
<TD class=calMonthDay>13</TD></TR>
<TR>
<TD class=calMonthDay>14</TD>
<TD class=calMonthDay>15</TD>
<TD class=calMonthDay>16</TD>
<TD class=calMonthDay>17</TD>
<TD class=calMonthDay>18</TD>
<TD class=calMonthDay>19</TD>
<TD class=calMonthDay>20</TD></TR>
<TR>
<TD class=calMonthDay>21</TD>
<TD class=calMonthDay>22</TD>
<TD class=calMonthDay>23</TD>
<TD class=calMonthDay>24</TD>
<TD class=calMonthDay>25</TD>
<TD class=calMonthToday>26</TD>
<TD class=calMonthDay>27</TD></TR>
<TR>
<TD class=calMonthDay>28</TD>
<TD class=calMonthDay>29</TD>
<TD class=calMonthDay>30</TD>
<TD class=calMonthDay>31</TD>
<TD class=calMonthDay> </TD>
<TD class=calMonthDay> </TD>
<TD class=calMonthDay> </TD></TR></TBODY></TABLE></DIV>
<DIV class=Sidetitle>
<H4>最新发表</H4></DIV>
<P><A title=""
href="http://ilovelate.itpub.net/post/7368/41187">String和StringBuffer类</A><BR><A
title="" href="http://ilovelate.itpub.net/post/7368/41084">趣谈Unicode编码</A><BR><A
title=""
href="http://ilovelate.itpub.net/post/7368/41080">Java中文问题及最优解决方法</A><BR><A
title=""
href="http://ilovelate.itpub.net/post/7368/41060">String.getBytes()方法中的中文编码问题</A><BR><A
title=""
href="http://ilovelate.itpub.net/post/7368/41026">利用Eclipse编辑中文资源文件</A><BR><A
title=""
href="http://ilovelate.itpub.net/post/7368/41014">Structs深入研究(一)-----Struts
framework的工作原理和组件</A><BR><A title=""
href="http://ilovelate.itpub.net/post/7368/40893">用javascript控制readonly属性</A><BR><A
title=""
href="http://ilovelate.itpub.net/post/7368/40836">java面试题及答案(基础题122道,代码题19道)
</A><BR><A title=""
href="http://ilovelate.itpub.net/post/7368/40835">应聘Java笔试时可能出现问题及其答案 </A><BR><A
title="" href="http://ilovelate.itpub.net/post/7368/40701">引用作为参数传递时容易搞错的两个例子
</A><BR></P></DIV>
<DIV id=Content>
<P style="TEXT-ALIGN: center"><A title="Next post: 用javascript控制readonly属性"
href="http://ilovelate.itpub.net/post/7368/40893">«</A> | <A
title="Previous post: 应聘Java笔试时可能出现问题及其答案 "
href="http://ilovelate.itpub.net/post/7368/40835">»</A> </P><!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><rdf:Description
rdf:about="http://ilovelate.itpub.net/post/7368/40836"
dc:identifier="http://ilovelate.itpub.net/post/7368/40836"
dc:title="java面试题及答案(基础题122道,代码题19道) "
trackback:ping="http://blog.itpub.net//trackback.php?id=40836"/></rdf:RDF> -->
<H3>java面试题及答案(基础题122道,代码题19道) </H3><SPAN class=date>ilovelate | 13 九月, 2005
00:31</SPAN>
<P>
<P>JAVA相关基础知识<BR>1、面向对象的特征有哪些方面
<BR>1.抽象:<BR>抽象就是忽略一个主题中与当前目标无关的那些方面,以便更充分地注意与当前目标有关的方面。抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象。<BR>2.继承:<BR>继承是一种联结类的层次模型,并且允许和鼓励类的重用,它提供了一种明确表述共性的方法。对象的一个新类可以从现有的类中派生,这个过程称为类继承。新类继承了原始类的特性,新类称为原始类的派生类(子类),而原始类称为新类的基类(父类)。派生类可以从它的基类那里继承方法和实例变量,并且类可以修改或增加新的方法使之更适合特殊的需要。<BR>3.封装:<BR>封装是把过程和数据包围起来,对数据的访问只能通过已定义的界面。面向对象计算始于这个基本概念,即现实世界可以被描绘成一系列完全自治、封装的对象,这些对象通过一个受保护的接口访问其他对象。<BR>4.
多态性:<BR>多态性是指允许不同类的对象对同一消息作出响应。多态性包括参数化多态性和包含多态性。多态性语言具有灵活、抽象、行为共享、代码共享的优势,很好的解决了应用程序函数同名问题。<BR>2、String是最基本的数据类型吗?<BR>基本数据类型包括byte、int、char、long、float、double、boolean和short。<BR>java.lang.String类是final类型的,因此不可以继承这个类、不能修改这个类。为了提高效率节省空间,我们应该用StringBuffer类<BR>3、int
和 Integer 有什么区别<BR>Java
提供两种不同的类型:引用类型和原始类型(或内置类型)。Int是java的原始数据类型,Integer是java为int提供的封装类。Java为每个原始类型提供了封装类。<BR>原始类型封装类<BR>booleanBoolean<BR>charCharacter<BR>byteByte<BR>shortShort<BR>intInteger<BR>longLong<BR>floatFloat<BR>doubleDouble<BR>引用类型和原始类型的行为完全不同,并且它们具有不同的语义。引用类型和原始类型具有不同的特征和用法,它们包括:大小和速度问题,这种类型以哪种类型的数据结构存储,当引用类型和原始类型用作某个类的实例数据时所指定的缺省值。对象引用实例变量的缺省值为
null,而原始类型实例变量的缺省值与它们的类型有关。<BR>4、String
和StringBuffer的区别<BR>JAVA平台提供了两个类:String和StringBuffer,它们可以储存和操作字符串,即包含多
java-test.zip_java面试题
版权申诉
45 浏览量
2022-09-14
19:40:27
上传
评论
收藏 32KB ZIP 举报
周楷雯
- 粉丝: 80
- 资源: 1万+
最新资源
- 电子设计竞赛的单相不间断电源设计
- cutcamera1715961370938.png
- 基于MATLAB的图像处理课程设计报告.doc
- tensorflow-gpu-2.6.0-cp38-cp38-manylinux2010-x86-64.whl
- mmexport1715960553858.png
- tensorflow-gpu-2.6.0-cp37-cp37m-manylinux2010-x86-64.whl
- 通过 .NET 应用程序中的源代码查找 SQL 注入
- 电子设计竞赛2007年B题 无线识别装置.doc
- Wox全局搜索工具,一款win下的全局搜索软件
- 使用高级集群管理 (ACM) 模板来管理用户、组和命名空间
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈