Index of /~lucia/courses/ITI1121-15/labs/solutions/t02
Name Last modified Size Description
Parent Directory -
TestFindAndReplace.java 11-Jan-2015 16:44 7.2K
Utils.java 11-Jan-2015 16:44 2.2K
Rational.java 11-Jan-2015 16:44 1.9K
TestAll.java 11-Jan-2015 16:44 1.6K
StudentInfo.java 11-Jan-2015 16:44 1.0K
TestRational.java 11-Jan-2015 16:44 247
Referring to the class Counter below, the keyword this can be omitted without affecting the compilation or execution of the program.
True or False
public class Counter {
private int value = 0;
public Counter( int initialValue ) {
this.value = initialValue;
}
}
The answer is true. The name of the instance variable value is not
conflicting with the name of the parameter.