Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.1 Explain the difference between using a computer program and programming a co

ID: 641150 • Letter: 1

Question

1.1 Explain the difference between using a computer program and programming a computer.
1.2 How do you discover syntax errors? How do you discover logic errors?
1.3 What is the difference between object and object reference?
1.4 Explain the difference between an object and a class.
1.5 What is the difference between equality and assignment?
1.6 What is the difference between a reserved word and an identifier?
1.7 What is the implicit parameter? Explain with example.
1.8 Write a java statement to convert a string str to a double.

Explanation / Answer

1)Explain the difference between using a computer program and programming a computer.
----programming a computer is make to use and compile existing computer program

2)How do you discover syntax errors? How do you discover logic errors?
syntax errors can be found by parsing using lexical analyzers where logic errors can be discovered using exceptoin classes

3)What is the difference between object and object reference?
An object, is an instance of a given class in memory. The object will have some state associated with it.

An "object reference" is a varaible that acts as a handle/pointer/marker to a given object so that its methods and fields maybe manipulated.

4)A class is what you create while coding, but object is created at runtime by your execution environment

5)
Keywords are reserved words like(static,public......) which has a special meaning for compilers.

Identifier can be name of any variable or any name used to identify an object or entity .hence keywords cannot be used as an identifier

6)
Implicit parameter that is passed by specifying an object variable (object reference) before the name of a method.

7)
You can use Double.parseDouble() to convert a String to a double
String text = "12.34"; // example String
double value = Double.parseDouble(text);