Results 1 to 2 of 2
- 09-22-2008, 06:06 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 2
- Rep Power
- 0
Please help me with this Problem Statement
A client application needs to determine if the server to which it is connecting is compatible.
The server will inform the client which versions it supports, for instance responding with a min_version="5.0.1.1234" and a max_version="5.4.12.9999".
The client application needs to compare these versions with its own build version, for instance build_version="5.2.6.2345" would be compatible.
Please produce client code using Java that will indicate to the user whether the client is:
a) compatible with the server
b) older than the minimum supported version
c) newer than the maximum supported version
You can assume that you already have the relevant strings containing the client build version and the supported server versions so there is no need to write code to communicate with the server.
The first numbers in the version string are most significant, so "5.0.1.1234" will be a more recent version than "4.99.999.9999" You will be judged on not just the accuracy and completeness of the code but on the suitability of this code for use in a production corporate environment.
This is an important INTERVIEW QUESTION.....
- 09-22-2008, 08:44 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
Similar Threads
-
Beginner's Problem on Loop/If statement
By obdi in forum New To JavaReplies: 2Last Post: 07-07-2008, 01:41 AM -
Help with if statement
By carl in forum New To JavaReplies: 1Last Post: 08-06-2007, 07:53 AM -
Problem with a switch statement in Java
By baltimore in forum New To JavaReplies: 2Last Post: 08-02-2007, 04:43 AM -
Statement or Prepared Statement ?
By paty in forum JDBCReplies: 3Last Post: 08-01-2007, 04:45 PM -
If Statement
By aDrizzle in forum New To JavaReplies: 4Last Post: 07-08-2007, 08:55 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks