Question: Which statements, when inserted at (1), will not result in compile-time errors? Select the three correct answers. (a) i = this.planets; (b) i = this.suns;

Which statements, when inserted at (1), will not result in compile-time errors?

public class ThisUsage { int planets; static int suns; public void gaze

Select the three correct answers.

(a) i = this.planets;

(b) i = this.suns;

(c) this = new ThisUsage();

(d) this.i = 4;

(e) this.suns = planets;

public class ThisUsage { int planets; static int suns; public void gaze () { int i; // (1) INSERT STATEMENT HERE }

Step by Step Solution

3.42 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a b and e Nonstatic methods have an implicit this obje... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!