Check out example codes for "what is graphics default color java". It will help you in understanding the concepts better.

Code Example 1

Graphics g;
g.getColor();

Learn ReactJs, React Native from akashmittal.com