| | |
Any Java Source for 16 Questions
![]() |
•
•
Join Date: Mar 2006
Posts: 1
Reputation:
Solved Threads: 0
I have been assigned to complete 45 questions using any Java source avaialble. I have found all except 16 of them in my Java book. This source was mentioned by the instructor as available. Could you please spend a minute to T or F them?
1. T or F. Static methods must be declared before dynamic methods in a class.
2. T or F. Static methods can access static variables of a class, but instance methods cannot.
3. T or F. You can override instance methods in a subclass.
4. T or F. If b is of class B and doit() is an instance method defined in B, then b.doit() always refers to the doit() from class B.
5. T or F. Static methods cannot access the private instance variables of of an object, but they can access the public instance variables.
6. T or F. More than one class can exist in a file, but classes cannot be nested.
7. T or F. Instance variables can be initialized when they are declared.
8. T or F. Local variables do not have an initial value by default.
9. T or F. A Java class can inherit from two unrelated classes.
10. T or F. A Java class can implement two unrelated interfaces.
11. T or F. Two classes cannot be defined in the same file since that would mean the file would have to have two different names.
12. T or F. Vectors may vary in size up to a fixed upper bound.
13. Effective use of vector elements requires casting.
14. Explain what super() does.
15. Explain what super(m) does.
16. Explain what super.print() does.
Thank you!
1. T or F. Static methods must be declared before dynamic methods in a class.
2. T or F. Static methods can access static variables of a class, but instance methods cannot.
3. T or F. You can override instance methods in a subclass.
4. T or F. If b is of class B and doit() is an instance method defined in B, then b.doit() always refers to the doit() from class B.
5. T or F. Static methods cannot access the private instance variables of of an object, but they can access the public instance variables.
6. T or F. More than one class can exist in a file, but classes cannot be nested.
7. T or F. Instance variables can be initialized when they are declared.
8. T or F. Local variables do not have an initial value by default.
9. T or F. A Java class can inherit from two unrelated classes.
10. T or F. A Java class can implement two unrelated interfaces.
11. T or F. Two classes cannot be defined in the same file since that would mean the file would have to have two different names.
12. T or F. Vectors may vary in size up to a fixed upper bound.
13. Effective use of vector elements requires casting.
14. Explain what super() does.
15. Explain what super(m) does.
16. Explain what super.print() does.
Thank you!
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
I did it for you good buddy:
I love you,
from your good friend server crash
•
•
•
•
1. T or F. Static methods must be declared before dynamic methods in a class.
A -- That's a big 10-4
2. T or F. Static methods can access static variables of a class, but instance methods cannot.
A -- False
3. T or F. You can override instance methods in a subclass.
A -- False
4. T or F. If b is of class B and doit() is an instance method defined in B, then b.doit() always refers to the doit() from class B.
A -- False
5. T or F. Static methods cannot access the private instance variables of of an object, but they can access the public instance variables.
A -- False
6. T or F. More than one class can exist in a file, but classes cannot be nested.
A -- true
7. T or F. Instance variables can be initialized when they are declared.
A -- FALSE
8. T or F. Local variables do not have an initial value by default.
A -- T-rue
9. T or F. A Java class can inherit from two unrelated classes.
A -- true
10. T or F. A Java class can implement two unrelated interfaces.
A -- false
11. T or F. Two classes cannot be defined in the same file since that would mean the file would have to have two different names.
a -- ohhhh yeahhhh
12. T or F. Vectors may vary in size up to a fixed upper bound.
A -- F
13. Effective use of vector elements requires casting.
A -- Yeah
14. Explain what super() does.
A -- creates a super class
15. Explain what super(m) does.
A -- destroys the class.
16. Explain what super.print() does.
A -- prints the word super.
from your good friend server crash
![]() |
Similar Threads
- Exception in thread "main" java.lang.NoClassDefFoundError: Invaders Error (Java)
- Differences Between Java and C/C++ (C++)
- arrays in java!!! (Java)
- Java Sun Programmer 1.4 Certification Exam HELP!!! (Java)
- Problems launching java source code (serious newbie, sorry! :( ) (Java)
- Invoke Java library from C/C++ (Java)
- Begin my first lesson to learn java (Java)
Other Threads in the Java Forum
- Previous Thread: interfaces in java
- Next Thread: Help appreciated/required for project
| Thread Tools | Search this Thread |
-xlint 911 actionlistener addressbook android applet application array automation bi binary blackberry block bluetooth character class client code compile compiler component consumer csv database desktop developmenthelp eclipse error fractal ftp game gameprogramming givemetehcodez graphics gui health html image j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jetbrains jni jpanel jtable julia learningresources lego linked linux mac main method mobile netbeans notdisplaying number objects online oriented printf problem program projects qt recursion replaydirector reporting researchinmotion rotatetext rsa scanner screen se server set singleton sms sort sql string swing system test textfields threads time title tree tutorial-sample ubuntu update variablebinding windows xor






