易截截图软件、单文件、免安装、纯绿色、仅160KB

Java中serialVersionUID的解释


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋体;
mso-font-kerning:1.0pt;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
 
serialVersionUID
作用:
  序列化时为了保持版本的兼容性,即在版本升级时反序列化仍保持对象的唯一性。
  有两种生成方式:
  一个是默认的1L
,比如:private static final long serialVersionUID = 1L;
  一个是根据类名、接口名、成员方法及属性等来生成一个64
位的哈希字段,比如:

 private static final long serialVersionUID = xxxxL;
  当你一个类实现了Serializable
接口,如果没有定义serialVersionUID
,Eclipse
会提供这个
  提示功能告诉你去定义
。在Eclipse
中点击类中warning
的图标一下,Eclipse
就会
  自动给定两种生成的方式。如果不想定义它,在Eclipse
的设置中也
  可以把它关掉的,设置如下:

 Window ==> Preferences ==> Java ==> Compiler ==> Error/Warnings ==>


 Potential programming problems
  将Seria


相关文档:

java基础面试题

1.请写出下列Java代码的输出结果  
  package   test;  
  public   class   FatherClass()  
      {   public   FatherClass()  
       &n ......

oracle居然能调用java程序

以前只知道java能调用oracle存储过程和函数,但今天我发现原来oracle也可以调用java
测试环境oracle 10g
call dbms_java.set_output(5000);
--首先在oracle中编译java文件 以下是个简单的
create or replace and compile java source named helloworld as
public     class   hellowor ......

传智播客Java培训 反射、注解


反射机制
特点:动态获取类以及类中成员。
通常在程序扩展时,会使用父类或者接口完成,其实就是多态。
在这种情况,运行时,还是需要给其传递一个自定义的子类对象。需要自己new来完成。
虽然修改动作已经很少了,但还是需要修改部分细节。
  interface Inter{void show();}
  class Demo{
   ......

Java数据导出到excel和word

这里只能从显示数据的jsp页面上导出当前页面的数据,这些数据可以从数据库读出,显示到jsp页面,然后加一段话就可把当前页面数据保存到excel里面!
如从后台过来数据显示到  showUser.jsp
然后加链接到 showExcel.jsp就可以了,在这个页面只多了几行字,其他的都不会显示包括页面!但这个页面上的数据跟showUser.js ......

java多态性详解——父类引用子类对象


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体" ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号