This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some Basic Questions

 
shailesh Jammie
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
all,
i have some basic questions i want to know the concept:
1: where we are using Void class or what is the use of Void class can any one give an example?
2: in Collection classes what is the diffrence between the methods
removeAll() and clear(). give all diffrences..
3: i have a class A, in the constructor of the class A i m passing the A class object only ,
for what purpose we can use this concept?
i mean
class A
{
public A(A a)
{
//do something
}
}
where is this technique useful?

bye
thnks
shailesh
 
Stuart Ash
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For point 3, read the copy-constructor part of this section:

http://www.codeguru.com/java/tij/tij0128.shtml
 
Adam Richards
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your wording sounds too much like a homework assignment, so I think I'll just say: Read your book & (if needed) the Java tutorial
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic