19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix D 777<br />

Modifier Class Construc<strong>to</strong>r Method Data Block Explanation<br />

synchronized U U Only one thread at a time can<br />

execute this method.<br />

strictfp U U Use strict floating-point<br />

calculations <strong>to</strong> guarantee that<br />

the evaluation result is the<br />

same on all JVMs.<br />

transient U Mark a nonserializable<br />

instance data field.<br />

The modifiers default (no modifier), public, private, and protected are known as<br />

visibility or accessibility modifiers because they specify how classes and class members are<br />

accessed.<br />

The modifiers public, private, protected, static, final, and abstract can also<br />

be applied <strong>to</strong> inner classes.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!