Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT Oracle Coding Standard for Java
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
A
t
tachments (0)
Page History
Page Information
Resolved comments
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
Old Categories
Jira links
5. Programmer Misconceptions
Created by
Carol J. Lallier
, last modified by
David Svoboda
on
Oct 20, 2014
Programmer Misconceptions: Introduction
Page:
CON50-J. Do not assume that declaring a reference volatile guarantees safe publication of the members of the referenced object
Page:
CON51-J. Do not assume that the sleep(), yield(), or getState() methods provide synchronization semantics
Page:
EXP50-J. Do not confuse abstract object equality with reference equality
Page:
EXP54-J. Understand the differences between bitwise and logical operators
Page:
FIO53-J. Use the serialization methods writeUnshared() and readUnshared() with care
Page:
IDS55-J. Understand how escape characters are interpreted when strings are loaded
Page:
MET51-J. Do not use overloaded methods to differentiate between runtime types
Page:
NUM51-J. Do not assume that the remainder operator always returns a nonnegative result for integral operands
Page:
OBJ50-J. Never confuse the immutability of a reference with that of the referenced object
Page:
OBJ54-J. Do not attempt to help the garbage collector by setting local reference variables to null
section
Overview
Content Tools
{"serverDuration": 74, "requestCorrelationId": "af9b85a62f5d7d24"}