The centos will install java automatically. But not for javac. So you have to install javac by yourself when you want to develop java program.
Now I give the step for install javac on Centos Server
1. get java version installed on your machine
java -version
you will get
java version "1.7.0_25"
OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
2. install javac
yum install java-1.7.0-openjdk-devel
3. check javac
javac -version
javac 1.7.0_25
I hope it may assist you when you install java development package on your PC.