What is the best way to protect your data from other classes? Accessors to regulate access through getter and setter methods. Good design is the only way. Use setDaemon() on the class at the correct time. Use of reentrant locks to carefully lock up data so only methods with the key can access it. You need to select several files in a Swing UI. What's the system to use? JDialog FileDialog JFileSystem O JFileChooser

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 4.18CP
icon
Related questions
Question
What is the best way to protect your data from other classes?
Accessors to regulate access through getter and setter methods.
Good design is the only way.
Use setDaemon() on the class at the correct time.
Use of reentrant locks to carefully lock up data so only methods with the key can
access it.
You need to select several files in a Swing UI. What's the system to use?
JDialog
FileDialog
JFileSystem
O JFileChooser
Transcribed Image Text:What is the best way to protect your data from other classes? Accessors to regulate access through getter and setter methods. Good design is the only way. Use setDaemon() on the class at the correct time. Use of reentrant locks to carefully lock up data so only methods with the key can access it. You need to select several files in a Swing UI. What's the system to use? JDialog FileDialog JFileSystem O JFileChooser
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Avoiding deadlock
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage