CubicCurve2D
is a class representing a single curve. Use it when you operate with isolated cubic curves.
Path2D
(which should be used instead of legacy GeneralPath
) is a class representing an arbitrary geometric path - sequence of lines, curves and moves etc. Use it when you operate with sequences of connected shapes.