自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (2)
  • 收藏
  • 关注

转载 深度解析Java内存的原型

本文主要通过分析Java内存分配的栈、堆以以及常量池详细的讲解了其的工作原理。一、Java虚拟机内存原型寄存器:我们在程序中无法控制栈:存放基本类型的数据和对象的引用,但对象本身不存放在栈中,而是存放在堆中堆:存放用new产生的数据静态域:存放在对象中用static定义的静态成员常量池:存放常量非RAM存储:硬盘等永久存储空间。二、常量池(constant pool)

2013-01-29 21:24:44 419

转载 CA Clarity Agile

DESCRIPTIONCA Clarity Agile enables application delivery team to become more customer-centric and deliver projects faster by providing better visibility into deliverables, costs and resources fo

2013-01-28 16:03:05 1103 1

原创 如何用Watij判断一个输入字段是在UI上是只读的字段

首先看一下封装后的为字段设置的api如下所示,  public void Set_TextField( String label, String value ) throws Exception  {    String xpath = "//*[(contains(@class, 'labelCol') or contains(@class, 'x-form-item-label')

2013-01-28 15:47:59 973 1

原创 String 类的equal方法源代码

首先看一下equal的源代码如下,public boolean equals(Object obj){if(this == obj)  return true; if(obj instanceof String){String s = (String)obj; int i = value.length; if(i == s.value.length){c

2013-01-28 13:58:24 1065

转载 mongoDB 入门指南、示例

一、准备工作1、 下载mongoDB 下载地址:http://www.mongodb.org/downloads 选择合适你的版本 相关文档:http://www.mongodb.org/display/DOCS/Tutorial 2、 安装mongoDB A、 不解压模式: 将下载下来的mongoDB-xxx.zip打开,找到bin目录,运

2013-01-28 12:59:24 480

原创 ByteArrayOutputStream源代码中的移位操作

ByteArrayOutputStream.Java 的源代码如下所示package java.io;import java.util.Arrays;// Referenced classes of package java.io:// OutputStream, IOException, UnsupportedEncodingExceptionpublic cla

2013-01-25 13:22:24 468

转载 How To Shutdown Windows Server 2012

Methods for Windows Server 2012 Shutdown or RebootSince Microsoft removed the Start button, there is no quick way to shut down or reboot the server.  Even the logon screen has no Shut down button.

2013-01-25 11:10:43 635

转载 理解String 及 String.intern() 在实际中的应用

Java代码  1. 首先String不属于8种基本数据类型,String是一个对象。       因为对象的默认值是null,所以String的默认值也是null;但它又是一种特殊的对象,有其它对象没有的一些特性。       2. new String()和new String(“”)都是申明一个新的空字符串,是空串不是null;

2013-01-24 16:04:29 781 1

转载 ByteArrayInputStream与ByteArrayOutputStream

第一次看到ByteArrayOutputStream的时候是在Nutch的部分源码,后来在涉及IO操作时频频发现这两个类的踪迹,觉得确实是很好用,所以把它们的用法总结一下。  ByteArrayOutputStream的用法以下是JDK中的记载: public class ByteArrayOutputStream  extends OutputStream

2013-01-23 16:06:28 440

转载 Comparator和Comparable在排序中的应用

当需要排序的集合或数组不是单纯的数字型时,通常可以使用Comparator或Comparable,以简单的方式实现对象排序或自定义排序。一、Comparator强行对某个对象collection进行整体排序的比较函数,可以将Comparator传递给Collections.sort或Arrays.sort。接口方法:  /**   * @return o1小

2013-01-22 20:36:51 313

转载 mongoDB视频

mongoDB视频

2013-01-20 20:41:33 470

原创 MongoDB貌似在中文操作系统中无法正常启动

我的操作系统是 Win 7 旗舰版,中文32位的操作系统。今天在mongoDB的官网上下载了一个mongoDB,尝试着做个小练习。可是每次尝试启动mongoDB的服务时总是报如下的错误。c:\mongodb>mongoMongoDB shell version: 2.2.2connecting to: testSat Jan 19 10:46:03 Error: couldn't

2013-01-19 10:53:55 493

转载 New CA Technologies CEO: Who Is Michael Gregoire?

CA Technologies (NASDAQ: CA) has named Michael P. Gregoire as CEO, effective Jan. 7, 2013. He previously was CEO of Taleo (which Oracle acquired); executive VP at PeopleSoft (which Oracle acquired); a

2013-01-18 13:51:48 522

原创 Support team不适合用Agile方式来进行管理

Support team 的一个特点就是你不知道明天会有什么高优先级的customer case进入到你的backlog 中来。因此在一个sprint的开始或是中期中,会时不时的被这些更高级别的bug给打乱。因为你要去腾出时间来去处理这些更高级别的bug。用户就是上帝。我个人感觉support team更适合用kanban 来进行team的管理。这样的话,对于这个组的领导来说,他所看到的是一个流。

2013-01-11 17:21:19 574

翻译 The Java™ Native Interface

一直想把这本书给看完然后给翻译出来,可是一直没有时间来得及做这件事情,刚好现在项目要用到这个技术。因此下定决心来做这件事情了。不过今天就先写个开头。站个位置。万事儿开头难,那么今天就先来个序,大家不要说这些东西没用哈。先大概了解一下作者的工作背景。前言这本书覆盖了Java本地接口的相关知识,如果你对以下列出来的几点感兴趣的话,那么这本书对你来说将来是比较有用的。1. 如何使用J

2013-01-11 15:49:36 526

原创 Java 遍历 Map 对象

如何在Java中遍历Map对象?如果阅读过Map 的 API开发文档,应该可以找到这三个关键方法。具体的实现入下java代码,import java.util.Collection;import java.util.HashMap;import java.util.Map;import java.util.Set;import java.util.Map.E

2013-01-08 13:18:15 422

原创 如何查看32位程序在64位系统中的注册表项

当32位的程序安装在32位的操作系统上后,会在如下的注册表路径下生成一个注册表项:Computer\HKEY_LOCAL_MACHINE\SOFTWARE\McAfee\McTray\Plugins\McTray Legacy Support Plugin。 但是当32位的程序安装在64位的操作系统上后,相应的注册表项会在如下的路径下:HKEY_LOCAL_MACHINE\SOFTWARE\Wow

2013-01-07 15:50:05 1032

原创 如何使用iMacros进行web程序中页面加载的性能测试

iMacros 的官方简介如下,这里就不做翻译了,本人觉得还是看原汁原味的介绍好。iMacros is an extension for the Mozilla Firefox web browsers which adds record and replay functionality similar to that found in web testing and form fille

2013-01-07 11:20:38 1536

转载 实例变量和类变量区别的总结

最近在复习一些Java知识..顺便给自己做一下总结,哪里写得不好,多情大家指教!! 实例变量和类变量平时我们好像多少叫做非静态变量和静态变量,两者的区别就是前者没static修饰,后者有static修饰。实例变量和类变量,这样的叫法,可以很直接得说明它们一个是属于实例的,另一个是属于类的,那什么叫属于实例和属于类呢? 属于实例:在new出类的实例的时候进行初始化的变

2013-01-07 10:29:35 515

转载 Few of questions that can ask from you at Interview...

1. What is the most important feature of Java?Java is a platform independent language.2. What do you mean by platform independence?Platform independence means that we can write and compilethe java

2013-01-04 12:05:32 960

Next Generation Java Testing TestNG

Doing the right thing is rarely easy. Most of us should probably eat better, exercise more, and spend more time with our families. But each day, when confronted with the choice of being good or doing the easy thing, we often choose the easy thing because, well, it’s easier. It is the same way with software testing. We all know that we should spend more effort on testing, that more testing will make our code more reliable and maintainable, that our users will thank us if we do, that it will help us better understand our own programs, but each day when we sit down to the computer and choose between writing more tests and writing more application code, it is very tempting to reach for the easy choice.

2015-10-08

OCA Java SE 7 Programmer I Certification Guide

OCA Java SE 7 Programmer I Certification Guide

2014-03-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除