my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Client weds server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Client weds server" Watch "Client weds server" New topic
Author

Client weds server

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hi reader,
What should I document for a instance or static variable decalred something like this:
private HashMap data; or
private String value;
Secondly, my project runs very well on my machine. But yesterday I tested the same program on my friends machine. What happened Server program started without any problem but when I started client program by supplying localhost parameter then it give me exception which said "Server is down". This is RemoteException which I had caught on client side. I had also made the setting with TCP/IP settings with localhost and restarted machine but still it produced no results. What can be the problem ?.
Thank you,
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
Hi!
About the documentation, speaking in general, in my app I have documented all the member (private, public, default and protected - constructors, fields and methods).
Anyway, sometime, when the role of the specified member(a private field or a private methods) is clear and obvious, i don't document it.
Hope it helps.


Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : a.gazzarini@gmail.com<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>
Vikas Sood
Ranch Hand

Joined: Sep 03, 2002
Posts: 109
hi,
I am also in agreement with Andrea that is to document everything in ur java class that is even private members.Specs are silent about it,but it doesnt hurt to document them all the same.
VikasSood
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Congratulations, where do we send the wedding presents.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
Hi Mark and others,
What should I document for a instance or static variable decalred something like this:
private HashMap data; or
private String value;
Thank you,
:roll:
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Actually looking back at my submission, I did not document instance variables. I got perfect on the documentation so I doubt that it is necessary for those private variables. But you can if you want, it won't harm you.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client weds server
 
Similar Threads
NX: (HTL) FileChannel & Threads
Do i need host to setup server?!!
Ignorant RMI question??? Design choice
How to disconnect client question
How do I find out what services occupy which port?