Question: 1. Which two are access modifiers? (Choose all correct answers) public final static private 2. To make fields directly accessible to other classes, the class

 1. Which two are access modifiers? (Choose all correct answers) public

final static private 2. To make fields directly accessible to other classes,

the class fields must be marked public. O False 3. Which two

1. Which two are access modifiers? (Choose all correct answers) public final static private 2. To make fields directly accessible to other classes, the class fields must be marked public. O False 3. Which two statements are true about getter methods? (Choose all correct answers) Getter methods typically return void. You must have a setter method if you have a getter method. Getters have a public access modifier Getters usually accept no arguments. 4. Which two statements are true about private access modifier? (Choose all correct answers) Class fields marked private are visible to any class. Class fields marked private are most secure. Class fields are typically marked public. Class fields are typically marked private. 5. Access and visibility of a class should be limited as much as possible. False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!