首页 > 编程语言
Java对象的生命周期
在创建一个Java类的对象之前,需要由虚拟机加载该类,然后对该类进行链接和初始化。初始化完成之后,才能创建出该Java类的新的对象实例。对象也有自己的初始化过程,主要通过调用对应Java类的特定构造方法来完成。...
分类:编程语言   时间:2014-07-31 10:01:36    收藏:0  评论:0  赞:0  阅读:275
【夯实基础】Spring在ssh中的作用
Spring在ssh中的作用,写的很不错,对于初学者应该能起到不小的帮助。...
分类:编程语言   时间:2014-07-31 09:57:26    收藏:0  评论:0  赞:0  阅读:416
JavaLearning:IO
package org.fun.classdemo; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; public class OutputStreamDemo { public static void main(St...
分类:编程语言   时间:2014-07-31 09:56:46    收藏:0  评论:0  赞:0  阅读:259
JavaLearning:JAVA IO 之内存操作流
package org.fun.io; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; public class ByteArrayDemo { public static void main(String[] args) { String str = "helloworld";// ...
分类:编程语言   时间:2014-07-31 09:56:26    收藏:0  评论:0  赞:0  阅读:170
JavaLearning:JAVA IO Piped流
package org.fun.io; import java.io.IOException; import java.io.PipedInputStream; import java.io.PipedOutputStream; class Send implements Runnable{ private PipedOutputStream output=null; publ...
分类:编程语言   时间:2014-07-31 09:56:16    收藏:0  评论:0  赞:0  阅读:342
【足迹C++primer】58、Template Parameter
Template Parameter #include #include #include #include #include #include using namespace std; template Foo calc(const Foo &a, const Foo &b) { Foo temp=a; //... return temp; } ///Templa...
分类:编程语言   时间:2014-07-31 09:55:46    收藏:0  评论:0  赞:0  阅读:458
【足迹C++primer】60、重载和模板
重载和模板 /** * 功能:重载和模板 * 时间:2014年7月27日16:23:32 * 作者:cutter_point */ #include #include #include using namespace std; /** 重载模板书写 */ template string debug_rep(const T &t) { ostringstream ret;...
分类:编程语言   时间:2014-07-31 09:55:37    收藏:0  评论:0  赞:0  阅读:394
【足迹C++primer】59、模板左值右值的转换
模板左值右值的转换 /** * 功能:模板左值右值的转换 * 时间:2014年7月27日08:18:06 * 作者:cutter_point */ #include #include #include using namespace std; template auto fcn(It beg, It end) -> typename remove_reference::ty...
分类:编程语言   时间:2014-07-31 09:55:27    收藏:0  评论:0  赞:0  阅读:582
java导出excel不需要额外jar包
目前我知道的在java中导出Excel可以用poi或在jsp的文件头改变输出流。下面再介绍一种就用java基础包导出的Excel。导出的格式形如: 源码如下: package csvExcel; import java.io.FileWriter; import java.io.IOException; import java.text.SimpleDateFormat; import...
分类:编程语言   时间:2014-07-31 09:50:16    收藏:0  评论:0  赞:0  阅读:621
小小异常:java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
分类:编程语言   时间:2014-07-31 09:45:46    收藏:0  评论:0  赞:0  阅读:299
Subset II leetcode java
题目:Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending o....
分类:编程语言   时间:2014-07-31 09:38:06    收藏:0  评论:0  赞:0  阅读:448
Codeblocks支持C++11
Setting->Compiler直接在“Have g++ follow the C++11 ISO C++ language standard [-std=c++11]” 选项上打勾 保存就可以了
分类:编程语言   时间:2014-07-31 09:36:36    收藏:0  评论:0  赞:0  阅读:354
Java中的native方法
博客引用地址:Java中的native方法 今天花了两个小时把一份关于什么是Native Method的英文文章好好了读了一遍,以下是我依据原文的理解。 一. 什么是Native Method 简单地讲,一个Native Method就是一个java调用非java代码的接口。一个Nativ...
分类:编程语言   时间:2014-07-31 09:35:16    收藏:0  评论:0  赞:0  阅读:353
java基础之synchronized用法
关于synchronized关键字的作用: 1、在某个对象的所有synchronized方法中,在某一时刻,只能有一个唯一的一个线程去访问这些synchronized方法 2、如果一个方法是synchronized方法,那么该synchronized关键字表示给当前对象(this)上锁。 3、如果一个synchronized方法是静态(static)的,那么该synchronized关键字表示给当前对象所对应的class对象上锁。(每个类,不管生成多少对象,其对应的class对象只有一个) 4、多线程:如...
分类:编程语言   时间:2014-07-31 07:28:46    收藏:0  评论:0  赞:0  阅读:339
Python 提取Twitter用户的Tweet
Python 提取Twitter用户的Tweet...
分类:编程语言   时间:2014-07-31 07:28:36    收藏:0  评论:0  赞:0  阅读:394
java基础之HTTP协议详解
HTTP协议通信过程详解 HTTP请求详解 HTTP响应详解...
分类:编程语言   时间:2014-07-31 07:28:05    收藏:0  评论:0  赞:0  阅读:378
spring4 aop annotation
package com.zrd.aop.annotation; /** * 第一步:定义一个接口 * * @author ZRD * */ public interface IMyService { int add(int i, int j); } package com.zrd.aop.annotation; import org.springframework.stere...
分类:编程语言   时间:2014-07-31 07:27:56    收藏:0  评论:0  赞:0  阅读:359
Subset leetcode java
题目:Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must n....
分类:编程语言   时间:2014-07-31 05:22:45    收藏:0  评论:0  赞:0  阅读:416
C/C++ extern关键字
在阅读代码的时候经常遇见extern关键字,由于平时接触很少一般没用到所以不是很熟,这里特别学习一下。首先得熟悉C++中声明与定义的概念。变量的定义用于为变量分配存储空间,还可以为变量指定初始值,在一个程序中变量有且仅有一个定义。变量的声明用于向程序表面变量的类型和名字。定义也是声明:当定义变量时我...
分类:编程语言   时间:2014-07-31 05:22:35    收藏:0  评论:0  赞:0  阅读:360
Path Sum II leetcode java
题目:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and ....
分类:编程语言   时间:2014-07-31 05:22:15    收藏:0  评论:0  赞:0  阅读:327
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!