Quote:

The amount of happiness that you have depends on the amount of freedom you have in your heart

Friday, 13 April 2012

CS508 assignment 1 spring 2012 solution


CS508                           Assignment 1

Solution Question – 1

Portability:

Java using VM (virtual Machine) between the application and Real Environment (computer+ operating system). We can run the program everywhere. Each kind of computer has its own instruction set. While some processors include the instructions for their predecessors, it's generally true that a program that runs on one kind of machine (computer) won't run on another. Add in the services provided by the operating system, which each system describes in its own unique way, and you have compatibility problem. In general, you can't write and compile a program for one kind of system and run it on any other without a lot of work. In other words, most programs are not portable JAVA is an architecture neutral language. As stated in article1, the JAVA compiler generates JAVA Virtual Machine codes instead of machine codes specific to the computer system we are using.
 Question – 2

Portability Factors:


Portability Factors
For Java
Platforms
Growing
Built-in-Libraries
Extensive
Third Party Libraries
Extensive
Standardization
High
Commercial Use
Extensive
Runtime Behavior
Defined
Safe Programming
Yes






Question 3- Solution:



No comments:

Post a Comment

“You can't change the past, but you can ruin the present by worrying about the future”