Meaningless Drivel is fun!
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

Some Basic Questions

shailesh Jammie

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

Stuart Ash
Ranch Hand

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

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:
subject: Some Basic Questions
It's not a secret anymore!