Given this class: And given this main method, located in another class: Which three lines, when inserted independently at line n1, cause the program to print a 0 balance? (Choose three.)
The correct answer is BCG
B - The variable "amount" in Class CheckingAccount is public, which allows the change from the instance to the main method
C - method setAmount () when called from the instance in the main method allows to modify the variable "amount" in the instance of CheckingAccount
G - The changeAmount () method receives in input the same value present in the CheckingAccount instance but in negative. Being public, the variable does not generate an error.
This section is not available anymore. Please use the main Exam Page.1z0-808 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.
baledevit
Highly Voted 2 years, 8 months agoMPignaProTech
Most Recent 7 months, 1 week agofvelazqueznava
1 year, 8 months agoDarGrin
1 year, 8 months agoDarGrin
1 year, 8 months agosomrita90
1 year, 9 months agodsms
1 year, 10 months agotuyetan
2 years agodastkoz
2 years, 1 month agospongecodes
2 years, 3 months agoAnkit1010
2 years, 4 months agoRAADEL3IMLAK
2 years, 5 months agoanmoldev2java
2 years, 6 months agocarloswork
2 years, 7 months agocarloswork
2 years, 7 months agowk8b
2 years, 8 months agoPhilip0908
2 years, 9 months agoshivkumarx
2 years, 9 months ago