Instance variables are member variables of a class.
Instance variables are declared with the static keyword.
Local variables defined inside a method are created when the method is executed.
Local variables must be initialized before they are used.
第1题:
In C language,(70)variables have to be defined outside of any function, this(71)actual storage for it.
A.internal
B.export
C.output
D.external
第2题:
Which three statements are true?()
第3题:
Which two statements are true regarding the creation of a default constructor?()
第4题:
Given that Thing is a class, how many objects and reference variables are created by the following code?() Thing item, stuff; item = new Thing(); Thing entity = new Thing();
第5题:
Which of the following statements about variables and scope are true?()
第6题:
Which statement is true?()
第7题:
Which of the following statements about variables and their scopes are true? ()
第8题:
The default constructor initializes method variables.
The default constructor has the same access as its class.
The default constructor invoked the no-arg constructor of the superclass.
If a class lacks a no-arg constructor, the compiler always creates a default constructor.
The compiler creates a default constructor only when there are no other constructors for the class.
第9题:
Inheritance represents an is-a relationship.
Inheritance represents a has-a relationship.
Interfaces must be used when creating a has-a relationship.
Instance variables can be used when creating a has-a relationship.
第10题:
One object is created
Two objects are created
Three objects are created
One reference variable is created
Two reference variables are created
Three reference variables are created.
第11题:
The default constructor initializes method variables.
The compiler always creates a default constructor for every class.
The default constructor invokes the no-parameter constructor of the superclass.
The default constructor initializes the instance variables declared in the class.
When a class has only constructors with parameters, the compiler does not create a default constructor.
第12题:
LSN_ADMIN
TNS_ADMIN
ADMIN_TNS
TSN_ADMIN
第13题:
Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?()
第14题:
Which two statements are true regarding the creation of a default constructor?()
第15题:
Which statements concerning the value of a member variable are true, when no explicit assignments have been made?()
第16题:
状态变量 (state variables)
第17题:
Which two are true about has-a and is-a relationships?()
第18题:
You execute the following commands to audit database activities: SQL > ALTER SYSTEM SET AUDIT_TRIAL=DB, EXTENDED SCOPE=SPFILE; SQL > AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE BY JOHN By SESSION WHENEVER SUCCESSFUL; Which statement is true about the audit record that generated when auditing after instance restarts?()
第19题:
An anonymous inner class may be declared as final.
An anonymous inner class can be declared as private.
An anonymous inner class can implement multiple interfaces.
An anonymous inner class can access final variables in any enclosing scope.
Construction of an instance of a static inner class requires an instance of the enclosing outer class.
第20题:
The value of an int is undetermined.
The value of all numeric types is zero.
The compiler may issue an error if the variable is used before it is initialized.
The value of a String variable is (empty string).
The value of all object variables is null.
第21题:
Member variables of the outer instance are always accessible to inner instances, regardless of their accessibility modifiers.
Member variables of the outer instance can never be referred to using only the variable name within the inner instance.
More than one inner instance can be associated with the same outer instance.
All variables from the outer instance that should be accessible in the inner instance must be declared final.
A class that is declared final cannot have any inner classes.
第22题:
Instance variables are member variables of a class.
Instance variables are declared with the static keyword.
Local variables defined inside a method are created when the method is executed.
Local variables must be initialized before they are used.
第23题:
The default constructor initializes method variables.
The default constructor invokes the no-parameter constructor of the superclass.
The default constructor initializes the instance variables declared in the class.
If a class lacks a no-parameter constructor,, but has other constructors, the compiler creates a default constructor.
The compiler creates a default constructor only when there are no other constructors for the class.
第24题:
Local variables defined inside a method are destroyed when the method is exited.
Local variables are also called automatic variables.
Variables defined outside a method are created when the object is constructed.
A method parameter variable continues to exist for as long as the object is needed in which the method is defined.