Chinaunix首页 | 论坛 | 博客
  • 博客访问: 497963
  • 博文数量: 99
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 783
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-12 09:11
文章分类

全部博文(99)

文章存档

2023年(2)

2022年(1)

2020年(1)

2019年(1)

2018年(4)

2017年(16)

2016年(60)

2015年(1)

2013年(3)

2006年(10)

我的朋友

发布时间:2016-04-01 10:33:17

VisualVM 是一款免费的\集成了多个 JDK 命令行工具的可视化工具,它能为您提供强大的分析能力,对 Java 应用程序做性能分析和调优。这些功能包括生成和分析海量数据、跟踪内存泄漏、监控垃圾回收器、执行内存和 CPU 分析,同时它还支持在 MBeans 上进行浏览和操作。本文主要介绍如何使用 VisualVM 进行性能分析及调优。.........【阅读全文】

阅读(1145) | 评论(0) | 转发(0)

发布时间:2016-04-01 09:42:27

在Java里, 当一个对象o被创建时, 它被放在Heap里. 当GC运行的时候, 如果发现没有任何引用指向o, o就会被回收以腾出内存空间. 或者换句话说, 一个对象被回收, 必须满足两个条件:    1)没有任何引用指向它    2)GC被运行. 在现实情况写代码的时候, 我们往往通过把所有指向某个对象的referece置空来保.........【阅读全文】

阅读(1246) | 评论(0) | 转发(0)

发布时间:2016-04-01 01:01:54

1:按值传递是什么指的是在方法调用时,传递的参数是按值的拷贝传递。示例如下:[java] copypublic class TempTest {  private void test1(int a){  //做点事情  } &nb.........【阅读全文】

阅读(1083) | 评论(0) | 转发(0)

发布时间:2016-04-01 00:54:35

One of the biggest confusion in Java programming language is whether it’s Pass by Value or Pass by Reference. I ask this question a lot in interviews and still see interviewee confused with it. So I thought to write a post about it to clarify all the confusions around it.First .........【阅读全文】

阅读(963) | 评论(0) | 转发(0)

发布时间:2016-03-31 23:13:46

Sometime back I wrote a couple of posts about Java Garbage Collection and Java is Pass by Value, after that I got a lot of emails to explain about Java Heap Memory, Java Stack Memory and what are the differences between them.You will see a lot of reference to Heap.........【阅读全文】

阅读(1368) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册