OBJECT ORIENTED PROGRAMMING
Before we talk about object oriented programming, we must know about all the programming like structured, procedural etc.
An Array can be defined as a finite ordered set of homogeneous elements. Here, finite means that there is a specific number of elements in an array. By the term ordered we means that elements of array are arranged in a sequence so that first, second, third etc. The homogeneous property of array means that all elements in the array must be of the same type. It is use to handle a large amount of data without the need to declare many indivisual variable. The array elements are store in a contigious memory location.
1)Documentation Section---Include Comment
2)Link Section----Include headerFile
3)Definition Section---Include symbolic
Constant means fix value we cannot change or we can say it’s a unchangeable value. Constant values are used in the program we cannot change the value during execution.After the initialize of the variable we can set constant value to the variable like this…….int a; a=12;
The final modifiers
Final modifier is very versatile
- When the final modifier is applied to any class, it means that the class cannot be subclassed
- When it is applied to any variable, it means that the variable is constant.
- When it is applied to any method, it means that the method cannot overridden by sub classes.
Good is a subjective criteria and denotes situation whereby a program can completely meet with all the user specifications and run without error under all given circumstances. Good programming is the practice of constructing and implementing quality programs within an acceptable time span. Once the program is written, they are used in their operating environment for a period which may span ten or more years .During this period of time, programs will be subject to any alternations or enhancements to reflect changing needs of users.
A program is a set of instructions to be executed by the computer to accomplish a particular task. While writing a program one has to take care of data which the program will process and generate information.
Before we talk about data type first we know about variable because data type is used with variable. Without variable the meaning of the data type is nothing, it's incomplete. Data types are used when you create variable in the program. Each variable is assigned a data type.
Variable is the name of the memory location from which we store the value .This is clear in above example.A name that holds a value.We can use variable to represents data.
JVM is a virtual machine that act as an interpreter between java byte code and a computer’s operating system.By using JVM we can run java code on any platform.A JVM include a JIT(just-in-time)compiler within it.JIT compiler converts whole program to bytecodes . JVM recognizes a particular format of a file called “class file(extension.class)”. Each "class file(extension .class)" contains the definition of a single class or interface.