多选题Which statements concerning the value of a member variable are true, when no explicit assignments have been made?()AThe value of an int is undetermined.BThe value of all numeric types is zero.CThe compiler may issue an error if the variable is used before it is initialized.DThe value of a String variable is (empty string).EThe value of all object variables is null.
多选题
Which statements concerning the value of a member variable are true, when no explicit assignments have been made?()
A
The value of an int is undetermined.
B
The value of all numeric types is zero.
C
The compiler may issue an error if the variable is used before it is initialized.
D
The value of a String variable is (empty string).
E
The value of all object variables is null.
参考解析
解析:
暂无解析
相关考题:
A class design requires that a member variable should be accessible only by same package, which modifer word should be used? A.protectedB.publicC.no modiferD.private
Which modifer should be applied to a declaration of a class member variable for the value of variable to remain constant after the creation of the object?() A.staticB.finalC.constD.abstract
Given:Which two statements are true about the result if the default locale is Locale.US?() A.The value of b is 2.B.The value of a is 3.14.C.The value of b is 2.00.D.The value of a is 3.141.E.The value of a is 3.1415.F.The value of a is 3.1416.G.The value of b is 2.0000.
Which of the following statements describe the use of the keywordstatic?a) Within the body of a function: A static variable maintains its valuebetween function revocationsb) Within a module: A static variable is accessible by all functionswithin that modulec) Within a module: A static function can only be called by otherfunctions within that module
Sometimes it is desirable to connect a member both by riveting and welding. Which statement is TRUE concerning this procedure?A.Tearing through the member is more likely in this type connectionB.The weld may be broken by the stresses caused by rivetingC.The weld increases the tensile stress on the rivet headsD.The welding must be completed before the riveting commences
Which statements concerning the switch construct are true?() A、All switch statements must have a default label.B、There must be exactly one label for each code segment in a switch statement.C、The keyword continue can never occur within the body of a switch statement.D、No case label may follow a default label within a single switch statement.E、A character literal can be used as a value for a case label.
Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?() A、Member variables of the outer instance are always accessible to inner instances, regardless of their accessibility modifiers.B、Member variables of the outer instance can never be referred to using only the variable name within the inner instance.C、More than one inner instance can be associated with the same outer instance.D、All variables from the outer instance that should be accessible in the inner instance must be declared final.E、A class that is declared final cannot have any inner classes.
A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.() A、 public int MAX_LENGTH=100;B、 final int MAX_LENGTH=100;C、 final public int MAX_LENGTH=100;D、 public final int MAX_LENGTH=100;
Which statements concerning the value of a member variable are true, when no explicit assignments have been made?() A、The value of an int is undetermined.B、The value of all numeric types is zero.C、The compiler may issue an error if the variable is used before it is initialized.D、The value of a String variable is "" (empty string).E、The value of all object variables is null.
Several @functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?()A、 @do B、 @for C、 @while D、 @dowhile
A member variable defined in a class can be accessed only by the classes in the same package. Which modifier should be used to obtain the access control?() A、 privateB、 no modifierC、 publicD、 protected
Concerning the E.U.,which of the following statements is wrong?()A、A college student in Greece can get a job in the U.K.in summer vocation.B、All the member countries adopt the currency,euro.C、The executive body of the E.U. is the European Commission,headquartered in Brussels.D、The Council of Ministers has the final power to decide E.U.actions.
单选题Which of the following statements concerning energy is correct?()AEnergy can be created or destroyedBEnergy may not be transformedCThe total quantity of energy in the universe is always the sameDNone of the above
多选题Concerning the figure below, if a =b, which of the following statements must be true? (Indicate all such statements.)Ac=dBl and k are parallelCm and l are perpendicular
单选题Sometimes it is desirable to connect a member both by riveting and welding. Which statement is TRUE concerning this procedure? ()ATearing through the member is more likely in this type connectionBThe weld may be broken by the stresses caused by rivetingCThe weld increases the tensile stress on the rivet headsDThe welding must be completed before the riveting commences
单选题Several @functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?()A @do B @for C @while D @dowhile
单选题Which variable factor affects the initial lashing requirements aboard Ro-Ro vessels? ()AAge of vehicle or cargo unitBSize and weight of vehicle/cargo unitCReputation of shipper concerning condition of cargoDAir pressure in the vehicles tires
单选题A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.()A public int MAX_LENGTH=100;B final int MAX_LENGTH=100;C final public int MAX_LENGTH=100;D public final int MAX_LENGTH=100;
单选题Which of the following statements concerning fire-tube boilers is correct?()ACombustion gases flow through the tubesBFlames impinge on the tubesCCombustion occurs in the tubesDWater flows through the tubes
单选题Which statements concerning the switch construct are true?()AAll switch statements must have a default label.BThere must be exactly one label for each code segment in a switch statement.CThe keyword continue can never occur within the body of a switch statement.DNo case label may follow a default label within a single switch statement.EA character literal can be used as a value for a case label.
单选题Which of the following statements is correct concerning the “flash point ” of a liquid?()AIt is lower than the ignition temperatureBIt is the temperature at which a substance will spontaneously igniteCIt is the temperature at which a substance, when ignited, will continue to bumDIt is the temperature at which the released vapors will fall within the explosive range
单选题Which of the following statements is true regarding the initialization parameter DIAGNOSTIC_DEST?() The default value is the value of the environment variable $ORACLE_HOME; if $ORACLE_HOME isn’t setA then the default is set to $ORACLE_BASE The default value is the value of the environment variable $ORACLE_BASE; if $ORACLE_BASE isn’t set,B then it is set to $ORACLE_HOMEC DIAGNOSTIC_DEST is always equal to $ORACLE_HOMED DIAGNOSTIC_DEST is always equal to $ORACLE_BASE
多选题Which statements are true concerning the effect of the and operators?()AFor non-negative values of the left operand, the and operators will have the same effect.BThe result of (-1 1) is 0.CThe result of (-1 1) is -1.DThe value returned by will never be negative as long as the value of the right operand is equal to or greater than 1.EWhen using the operator, the leftmost bit of the bit representation of the resulting value will always be the same bit value as the leftmost bit of the bit representation of the left operand.
单选题A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()A publicB no modifierC protectedD private
单选题The value of the controlled variable, which under any fixed set of conditions the automatic controller operates to maintain, is known as ()Aset pointBcontrol pointCdeviationDoffset
单选题Which of the following statements is correct concerning the viscosity of lubricating oil?()AViscosity will increase as temperature increasesBViscosity is a measure of a fluid s internal resistance to flowCViscosity will decrease as temperature decreasesDViscosity is not dependent on temperature
单选题Concerning the E.U.,which of the following statements is wrong?()AA college student in Greece can get a job in the U.K.in summer vocation.BAll the member countries adopt the currency,euro.CThe executive body of the E.U. is the European Commission,headquartered in Brussels.DThe Council of Ministers has the final power to decide E.U.actions.