posted 22 years ago
#1 Which can not be used in declaring or declaring and initializing an automatic variable?
1) final
2) static
3) constants non-primitive type
4) inner classes from other scopes
5) initialized arrays(such as {"Hello","Goodbye"})
#2 Which best describes the requirements fo a fully encapsulated class ?
a) Method are all privates
b) Instance variables are all private
c) No methods or variable are static
d) Methods are all public while instance variable are all default or private
e) Methods are public, protected, default or private access while instance variables are only public
Could someone kindly answer the above questions with brif explanations?
thank you!