File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Some Basic Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Some Basic Questions" Watch "Some Basic Questions" New topic
Author

Some Basic Questions

shailesh Jammie
Greenhorn

Joined: Nov 14, 2005
Posts: 11
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

Joined: Oct 07, 2005
Posts: 637
For point 3, read the copy-constructor part of this section:

http://www.codeguru.com/java/tij/tij0128.shtml


ASCII silly question, Get a silly ANSI.
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 135
Your wording sounds too much like a homework assignment, so I think I'll just say: Read your book & (if needed) the Java tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Some Basic Questions