Question:
programming in java questions....plssss. true or false?
Maryam B
2009-11-30 12:45:11 UTC
1. _____ In Java a sub-class can have more than one immediate parent class.
2. _____ An object of the type of an abstract class has more than one type.
3. _____ A call to the parent constructor creates the parent object that the child object might need.
4. _____ If a constructor does not contain an invocation of either super(..) or this(..) methods, then Java automatically inserts an invocation of super() as the first statement in the body of that constructor’s definition.
5. _____ private members of a parent class cannot be accessed by name in the sub-class.
6. _____ An overriding method can have a different return type than the overridden method.
7. _____ You must use the super keyword when accessing an inherited member from the parent class.
8. _____ Adding the final modifier to a method heading forces sub-classes to use the inherited version and hence prohibits overriding it.
9. _____ An abstract method may also be declared with the final modifier.
10. _____ A class that implements an interface must provide implementations for all the methods specified in that interface unless it is declared as abstract.
Three answers:
?
2016-10-17 11:49:47 UTC
a million. actual. you're able to have as many as you like, yet do only no longer bypass overboard. 2. fake. the == operator is for comparing 2 values. It skill "is comparable to." The = operator is what assigns values. 3. actual. the widespread style() approach only takes one-dimensional arrays as a parameter. 4. actual. You ned to have an occasion of the "outdoors type" to get entry to its inner type. 5. fake. you could exchange variable values as long as you have the right setter/getter strategies. 6. fake. the right approach is String.parseInt().
Dark Fenix
2009-11-30 12:55:37 UTC
1.- N

2.- Y

3.- Y

4.-

5.- Y

6.- F

7.-

8.-

9.-

10.- Y
2009-11-30 12:48:58 UTC
If you get other people to awnser them for you, you wont learn.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...