title: Access modifiers in JavaFx and @FXML
body: <p>I am new to JavaFx and in a few tutorials I've seen, there were some differences. In one of the tutorials, he always used <code>private</code> as the access modifier in the controller class and wrote it this way:</p>
  
  <p><code>@FXML private Button button;</code></p>
  
  <p>But the other tutorial always used public and didn't include @FXML in the controller class. Both of these seem to work fine but is there an actual difference between them that I should know?</p>