If you do not supply a stroke using the setStroke method, Java uses CAP_SQUARE and JOIN_MITER by default.
setStroke
CAP_SQUARE
JOIN_MITER