Hope you are doing well.
Thanks for raising a request, we are glad to assist you.
Fix the connection URL. Oracle certainly doesn't listen on port 8080. It's usually Tomcat who listens on 8080 and that's not a DB server. Oracle uses by default 1521.
Connection con= DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle");