Results 1 to 4 of 4
  1. #1
    jmohandos304 is offline Member
    Join Date
    Apr 2014
    Posts
    67
    Rep Power
    0

    Default Scope of public variable and Distributed Application

    A distributed application consists of modules which run on different machines. How is this possible? Does it have any link with the public modifier?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,798
    Rep Power
    19

    Default Re: Scope of public variable and Distributed Application

    The modules talk to each other via some protocol or other.
    Nothing to do with the 'public' keyword.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    jmohandos304 is offline Member
    Join Date
    Apr 2014
    Posts
    67
    Rep Power
    0

    Default Re: Scope of public variable and Distributed Application

    Thats fine. What about the package the modules are in? Is it possible that we have 2 modules in 2 different machines under the same package? How?

    Also what about the scope of the variables? Are they same as we would have in a normal(non-distributed) application?

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,798
    Rep Power
    19

    Default Re: Scope of public variable and Distributed Application

    Apart from the protocol between them b(eg the messages they send to each other), the two machines are entirely unaware of the software behind that protocol.
    They could be (and often are) entirely different languages.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Structure of a distributed application using RMI
    By Zyril in forum Advanced Java
    Replies: 0
    Last Post: 11-24-2013, 05:01 PM
  2. Sentinel value and variable scope
    By jonathan in forum New To Java
    Replies: 2
    Last Post: 07-21-2012, 08:19 AM
  3. variable scope between classes
    By newbie123 in forum New To Java
    Replies: 6
    Last Post: 03-03-2010, 11:20 PM
  4. Variable Scope
    By Laura Warren in forum New To Java
    Replies: 3
    Last Post: 01-11-2009, 10:16 PM
  5. which is the best technology for distributed application.
    By sujithc34 in forum Advanced Java
    Replies: 1
    Last Post: 02-05-2008, 06:52 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
  •