Skip to main content

Posts

Showing posts from February, 2012

How the bytecode makes portability in java?

Java solves the problem of platform-independence by using byte code. The Java compiler does not produce native executable code for a particular machine like a C compiler would. Instead it produces a special format called byte code. Java byte code written in hexadecimal, byte by byte, looks like this CA FE BA BE 00 03 00 2D 00 3E 08 00 3B 08 00 01 08 00 20 08

What is the mean of re-usability in Java ?

Object oriented programming is the most preferred programming technique now a day only due to the flexibility of re usability. Re usability is actually an attribute that makes the object oriented programming more flexible and attractive. As this programming is based on objects. Object is actually a collection of data and functions that are used to operate on that data. These objects are defined as independent entities because the data inside each object represents the attributes of object and functions are used to change these attributes as required by a program. These objects act just like spare parts of any program. Thus, they are not limited to any specific program; rather they can be used in more than one application as required. These objects are defined as an independent entity in a program, and afterward they can be used in any other program that needs the same functionality. This reuse of objects helps in reducing the development time of programs. Example: Inheritanc