Card 10 / 37: public class Marklist { int num; public static void graceMarks(Marklist obj4) { obj4.num += 10; } public static void main(String[] args) { MarkList obj1 = new MarkList(); MarkList obj2 = obj1; MarkList obj1 = null; obj2.num = 60; graceMarks(obj2); } } How many objects are created in the memory runtime?
A)
1
B)
2
C)
3
D)
4
Answer:
A) 1
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|