This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NX:Question about object serializable

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it mean I can simply write the code this way: the client send a String (or a line) to the Server such like "read 1" in which "read" is the command represents read(int recNo) and "1" is the recNo, then the Server should return a String(or a line) to the Client the specific record information such like "HotelName Price ..."?
Am I right?
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi HaoZhe,
Does it mean I can simply ...

I don't quite understand your question. Could you try to specify your question?
Best,
Vlad
 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean I am going to write the Client-Server architecture like this: the client send a request to the server and then the server send back a reply.
e.g.
client: isLocked 1
server: yes (or no)
client: read 1
server: Northcote yes 3 $140
etc.
Am I right?
Is it object serializable?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!