In the following Java code, what can directly access and change the value of the variable name?
package test;
class Target
{
public String name = “hello”;
}
a) any class
b) only the Target class
c) any class in the test package
d) any class that extends Target
Answer: c
Explanation: Any class in the test package can access and change name.
Related Posts
Empdt1(empcode, name, street, city, state, pincode).
For any pincode, there is only one city and state. Also, for given street, city and state, there is just one pincode. In normalization terms, empdt1 is a relation inWhich forms are based on the concept of functional dependency:
Which forms has a relation that possesses data about an individual entity:
Which forms simplifies and ensures that there are minimal data aggregates and repetitive groups:
Which is a bottom-up approach to database design that design by examining the relationship between attributes:
Functional Dependencies are the types of constraints that are based on______
Which-one ofthe following statements about normal forms is FALSE?
Join The Discussion