... and java is using 8080 port by default
Actually, not it isn't.
Java doesn't use any port by default. It is some Java application that is using port 8080 by default. Or if you count Jenkins as well, maybe it is two different Java applications trying to use port 8080.
So how to change ports in centos or how to access jenkins on 8080 port ..??
In general:
Run
netstat -a -n
to get a list of all applications that are LISTENing, and look for the one that listens on port 8080. This may well reveal that (for example) you already have an instance of Jenkins running(!)Decide which of the applications should and should not use that port.
Look at the application documentation for how to use a different port.
Note that this may well entail looking at the scripts that you are using to launch various services ...
In this particular case, the port that Jenkins uses is a command line parameter.