COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Term to indicate that a program can be run on a variety of platforms
A
Console
B
Windowed
C
Portable or platform-independent
D
Applet
Explanation: 

Detailed explanation-1: -Due to the system-specific application of source code, it has limited portability. It makes it easier for the native code (written in C or C++) to interface with other programs ( written in Java or other languages). Additionally, this is what gives Java platform independence.

Detailed explanation-2: -portable means you can run it anywhere without setting up any installation they are standalone and does not require other tools. while platform independent means the same code runs on all platforms be it various processors os’s or devices.

Detailed explanation-3: -Software that can run on a variety of hardware platforms or software architectures. Platform-independent software can be used in many different environments, requiring less planning and translation across an enterprise.

Detailed explanation-4: -Operating system runs on a computer hardware and serve as platform for other software’s to run on it. The other software that run on operating system platform are known as application or application programs.

Detailed explanation-5: -Java is Platform Independent And it creates an intermediate code called Byte Code. Bytecode adds this important feature in Java of being independent/ portable as this bytecode is independent of the platforms. This dependency eases the tasks as it can be used in various environments with lesser planning and translation.

There is 1 question to complete.