Which one of the following is an advantage of providing accessor methods in a class, rather than making the class's fields publicly accessible?
Choice 1 Accessor methods can ensure data integrity by validating the proposed value. Any value could be written to a public field.
Choice 2 Accessor methods can prevent memory overwrites by performing bounds checks on arrays. Public fields are not checked for bounds overrun.
Choice 3 The accessor methods are automatically available to other tasks using the RMI subsystem. Public fields cannot be remotely accessed.
Choice 4 Accessor methods improve performance by avoiding a context switch in the bytecode interpreter. Accessing a public field requires loading the object's data pointer.
Choice 5 Accessor methods can be made accessible to classes in other packages. Public fields are only usable from the same package.
I think choice 4 is the correct answer. please advise