Your Knowledge Tuner

Software Framework

Framework means a basic structure of underlying a System, a Concept, or Text. In Computer Programming, Software Framework is an environment that facilitates the development of Software Applications. A Software Framework is an environment that provide all the necessary things together to develop Software Applications, Products & Solutions. These necessary things include – Support Programs, Compilers, Code Libraries, Tool Sets, and APIs that bring together all the different components to enable development of a Software Application.

Java Class

  1. The most important thing to understand about a class is that it defines a new data type.
  2. A class is a template for an object, and an object is an instance of a class. Because an object is an instance of a class, you will often see the two words object and instance used interchangeably. A class creates a logical framework that defines the relationship between its members. Thus, a class is a logical construct. An object has physical reality.
  3. Variables defined within a class are called instance variables because each instance of the class (i.e object of class) contains its own copy of these variables. Thus, the data for one object is separate and unique from the data for another.
  4. C++ & Java : In java the class declaration and the implementation of the methods are stored in the same place and not defined separately.
  5. Obtaining objects of a class is a two-step process.
    (1)First, you must declare a variable of the class type. This variable does not define an object. Instead, it is simply a variable that can ‘refer’ to an object.
    (2)Second, you must acquired an actual, physical copy of the object and assign it to that variable.
    Box obj;
    Obj = new Box();
    C++ & Java: It noticed that object reference appear to be similar to pointers in C++. This suspicion is, essentially, correct. This suspicion is, essentially, correct. An object reference is similar to a memory pointer. The main difference-and the key to java’s safety-is that you cannot manipulate reference to point to an arbitrary memory location or manipulate it like an integer.
  6. When we assign one object reference variable to another object reference variable, you are not creating a copy of the object, you are only making a copy of the reference.
    Box b1 = new Box();
    Box b2 = b1;
    In this b1 and b2 will both refer to the same object. The assignment of b1 to b2 did not allocate any memory or copy any part of the original object. It simply makes b2 refer to same object as does b1. Thus any changes made to the object through b2 will affect the object to which b1 is referring, since they are the same object.