Does processing is using Java 2d api or open GL?

i would like to use processing as render template to see how it works, but if is using java 2d and am already using that, then i think wont be much useful.