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

    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="" and a max_version="".

    The client application needs to compare these versions with its own build version, for instance build_version="" 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 "" 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
    Rep Power

Similar Threads

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