title: Client side object creation of a server side class through transferring the class skeleton from server-to-client
body: <p>Please pardon me if this question has been already asked before ...</p>
  
  <p>I would like to create a client-server application preferrably using Java which requires the client program to invoke certain controller in the server program to encapsulate a single class originally resides in the server and deliver to the client side. The client will then decapsulate the class and create a new class object and perform certain task.</p>
  
  <p>However, I am not sure how it would be possible to encapsulate a whole class in the server side and transfer back to the client side for object creattion, instantiation and perform required tasks.</p>
  
  <p>For example, similar kind of application may be like client side JavaScript or Flash program execution for server side code. But I am not sure either JavaScript or Flash programs are operating like this way or not.</p>
  
  <p>Please suggest me the possible ways of writing such kind of app in a very simplistic way to express this concept/idea or any possible links/examples to get a grip into.</p>
  
  <p>Thanks a tlo...</p>