Make your own Java webServer

import java.net.*; import java.io.*; class myserver { public static void main(String str[]) { String myIp=null; int port=786; try{ //Get Systems current ip address myIp= Inet4Address.getLocalHost().getHostAddress(); System.out.println(“Server is Running with “+ myIp +”:”+ port); //Create Server Socket ServerSocket welcome = new ServerSocket(port); //Accept incomming connection Socket Socket sskt = welcome.accept(); PrintWriter out = new PrintWriter(sskt.getOutputStream()); //Create

What will the answer or error if I tried to perform operation divide by zero in java ?

What will the answer or error if I tried to perform operation divide by zero in java ? Either 1. Infinity or 2. divide by zero error. As the mathematical term, if you try to divide any number by zero then it will gives answer of infinite. And as the program if we are going