package q23;
public class App {
public int x = 100;
public static void main(String[] args) {
int x = 1000;
App t = new App();
t.myMethod(x);
System.out.println(x);
}
public void myMethod(int x) {
x++;
System.out.println(x);
System.out.println(this.x);
}
}
// Result:
// 1001
// 100
// 1000
This section is not available anymore. Please use the main Exam Page.1z0-829 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SrinivasJasti
3 months, 3 weeks agoxplorerpj
10 months agojames2033
1 year, 1 month agoTojose
1 year, 3 months ago