--%>

Explain This

This: It is a Java reserved word with numerous different uses:

A) Within a constructor, it might be employed as the first statement to call the other constructor in similar class. For illustration:

              // Initialize with default values.
              public Heater()
              {
                  // Use another constructor.
                  this(15, 20);
              }

              // Initialize with the given values.
              public Heater(int min,int max)
              {
                  ...
              }
             
B) Within a method or constructor, it might be employed to distinguish between a field and a parameter or method variable of similar name. For example:

              public Heater(int min,int max)
              {
                  this.min = min;
                  this.max = max;
                  ...
              }
             
C) It can be employed as a reference to the present object, usually in order to pass the reference to the other object:
               talker.talkToMe(this);

   Related Questions in Programming Languages

  • Q : Explain Copy constructor Copy

    Copy constructor: It is a constructor which takes a single argument of similar class. For illustration:     public class Point {        

  • Q : Explain Fully qualified class name

    Fully qualified class name: The name of a class, comprising any package name and including class name. The class outline is as follows:     package oddments;    class Outer

  • Q : Explain the signing mandatory within

    Explain the signing mandatory within S60 3rd Edition.

  • Q : Define Deep copy Deep copy : It is a

    Deep copy: It is a copy of an object in which copies of all the object's sub-components are also prepared. The resultant object may, in effect, be a clone of the novel.

  • Q : Long lock in the tibco iProcess

    Describe the term Long lock in the tibco iProcess in brief.

  • Q : Program is prone to deadlock when

      Give a brief introduction about the operation of your program and show that you understand the idea behind threads and mutual exclusion variable. Why do we need to use mutual exclusion to control the access of the three global variables? What is the potential p

  • Q : Define the term Security policy Define

    Define the term Security policy: It is a policy employed to limit access by an applet to the resources of the host system.

  • Q : Define Swapping Swapping : An

    Swapping: An {operating system} is frequently able to run programs which need more memory than is physically accessible on the host system. In order to do this, the complete memory needed is broken down into smaller pieces that are swapped in whenever

  • Q : Explain Infinite loop Infinite loop :

    Infinite loop: The loop whose termination test never computes to false. At times this is a deliberate act on the portion of the programmer, employing a construct like:         whi

  • Q : What is single user sysytem What is

    What is meant by the single users system?