find / -type f | egrep "\.(java|xml)$"

find / -type f -name "*.js" -o -name "*.xml"