Posts

Showing posts from 2012

importatnt site

http://loopj.com/android-async-http/

Asynchronous and Syncronous

The term  asynchronous  is usually used to describe  communications  in which data  can be transmitted intermittently rather than in a steady stream. For example, a telephone conversation is asynchronous because both parties can talk whenever they like. If the communication were  synchronous , each party would be required to wait a specified interval before speaking. The difficulty with asynchronous communications is that the receiver must have a way to distinguish between valid data and  noise . In computer communications, this is usually accomplished through a special  start bit  and stop bit  at the beginning and end of each piece of data. For this reason, asynchronous communication is sometimes called  start-stop   transmission .

Java interview questions and answers

Describe what happens when an object is created in Java? Several things happen in a particular order to ensure the object is constructed properly: 1. Memory is allocated from heap to hold all instance variables and implementation-specific data of the object and its superclasses. Implementation-specific data includes pointers to class and method data. 2. The instance variables of the objects are initialized to their default values. 3. The constructor for the most derived class is invoked. The first thing a constructor does is call the constructor for its uppercase. This process continues until the constructor for java.lang.Object is called, as java.lang.Object is the base class for all objects in java. 4. Before the body of the constructor is executed, all instance variable initializers and initialization blocks are executed. Then the body of the constructor is executed. Thus, the constructor for the base class completes first and constructor for the most derived class completes l