What are the two most important benefits of the java


Answer the following questions

1. Why the Java is called platform independent? Discuss.

2. What are the two most important benefits of the Java language?

3. List out the type of errors occurred in java program.

4. What do you meant by pseudo code? Give example.

5. Define accessor and mutator methods.

6. Define Encapsulation?

7-Find the errors in the following code segments.

7.1

System.out.println(Hello, World!);

7.2

double avg ;
avg=66Z;
System.out.println(avg*2);

7.3

int Km/h = 120;

8.Write one statement to compute the length of a stringstr.

9.Write a Java program that performs the following:

1. Identify the radius of the circle. (radius = 3)

2. Calculate circumference and area of the circle.

3. Print the results

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: What are the two most important benefits of the java
Reference No:- TGS01278150

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)