True/False 4
Java assigns a default value to a data member of a class if the data is not initialized.
The default value for a data member of boolean type is true.
The default value null is assigned to a data member of object type, even though the data member is not created yet.
Java assigns a default value to a local variable in a method if the variable is not initialized.
The default constructor has no arguments.
You can always use the default constructor even though the non-default constructors are defined in the class.
You can access a class variable using a syntax like objectName.classVariable or ClassName.classVariable.
You cannot use the private modifier on classes.
You cannot use modifiers on local variables inside a method.
A static method in a class can access the instance variables in the same class.
A static method in a class can access the class variables in the same class.
You can declare a local variable in a method that has same name as an instance variable in the class.
You can declare variables of the same name in a method even though they are in the same block.
You can declare variables of the same name in a method if they are in non-nesting blocks.
You can create an instance of the Math class.
Visited
times since 5 Feb 1999.