--%>

Explain Variable declaration

Variable declaration: It is the association of a variable with a specific type. It is significant to make a distinction among the declaration of variables of primitive types and such of class types. The variable of primitive type performs as a container for the single value of its declared type. The declaration of variable of a class type doesn’t automatically causes an object of that type to be constructed and, by default, the variable will encompass the value null. The variable of a class type performs as a holder for a reference to an object which is compatible with the variable's class type. The Java's rules of polymorphism permit a variable of a class type to hold a reference to some object of its declared type or any of its sub-types. The variable with a declared type of Object, thus, might hold a reference to an object of any class, consequently.

   Related Questions in Programming Languages

  • Q : Explain the role XSL that dynamically

    Explain the role which XSL can play while dynamically generating HTML pages by a relational database?

  • Q : What is the use of compatibility testing

    What is the use of compatibility testing?

  • Q : Define BOOP Toolkit BOOP Toolkit : The

    BOOP Toolkit: The BOOP Toolkit has been developed at the Institute for Software Technology at Graz University of Technology. It is based on the SLAM project and uses the same main concept of verification by abstraction and refinement to determin

  • Q : Define User Datagram Protocol User

    User Datagram Protocol: The User Datagram Protocol (abbreviated as UDP) is a set of rules which permit communication among two processes across a network. The protocol is unreliable, that means that information is not guaranteed to be

  • Q : Programming with C# QUESTION 1      

    QUESTION 1       The following UML diagram describes an abstract class Customer. This class is to be used as part of a Company's inventory system. The inventory system will contain many different types of customers.  A separate s

  • Q : Benefit from JavaIDL Why did Java

    Why did Java benefit from the development of JavaIDL?

  • Q : Types of rings in CPU Name the

    Name the different kinds of rings presented in CPU?

  • Q : Features of WordPress Normal 0 false

    Normal 0 false false

  • Q : Explain Abstraction Abstraction : It is

    Abstraction: It is a simplified symbolization of something which is potentially quite complex. It is frequently not essential to know the precise details of how something works, is symbolized or is implemented, since we can still make use of it in its

  • Q : Define Class scope Class scope :

    Class scope: Private variables stated outside the methods in a class contain class scope. They are available from all methods within a class, in spite of the order in which they are stated. The private methods too contain class scope. Variables and me