Results 1 to 2 of 2
  1. #1
    KMS
    KMS is offline Member
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Question 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.....

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

Similar Threads

  1. Beginner's Problem on Loop/If statement
    By obdi in forum New To Java
    Replies: 2
    Last Post: 07-07-2008, 02:41 AM
  2. Help with if statement
    By carl in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 08:53 AM
  3. Problem with a switch statement in Java
    By baltimore in forum New To Java
    Replies: 2
    Last Post: 08-02-2007, 05:43 AM
  4. Statement or Prepared Statement ?
    By paty in forum JDBC
    Replies: 3
    Last Post: 08-01-2007, 05:45 PM
  5. If Statement
    By aDrizzle in forum New To Java
    Replies: 4
    Last Post: 07-08-2007, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •