Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
CSCE	
  155	
  –	
  Lab:	
  Arrays	
  &	
  Dynamic	
  Memory	
  
Worksheet	
  –	
  Java	
  Version	
  
Name	
  _________________________________	
  
1. What	
  is	
  the	
  MemoryLeakA	
  program	
  doing?	
  
	
  
	
  
	
  
	
  
2. Describe,	
  in	
  your	
  own	
  words,	
  what	
  you	
  observed	
  the	
  garbage	
  collector	
  was	
  doing	
  (also:	
  how	
  often,	
  
how	
  effective	
  it	
  was,	
  etc.)	
  
	
  
	
  
	
  
	
  
3. How	
  much	
  memory	
  did	
  MemoryLeakB	
  consume	
  before	
  you	
  killed	
  it?	
  	
  How	
  fast	
  did	
  the	
  memory	
  
consumption	
  grow?	
  
	
  
	
  
	
  
	
  
4. Explain	
  the	
  difference	
  between	
  MemoryLeakA	
  and	
  MemoryLeakB:	
  what	
  was	
  the	
  second	
  program	
  
doing	
  to	
  cause	
  the	
  increased	
  memory	
  usage?	
  	
  
	
  
	
  
	
  
	
  
	
  
5. Show	
  and	
  demonstrate	
  your	
  code	
  for	
  Statistics.java	
  to	
  a	
  lab	
  instructor.	
  
	
  
	
  	
  	
   	
   Lab	
  Instructor	
  Signature____________________________________