What is the output of the program?public class temp{public static void main(String agrs[]){int loop;for(loop=1; loop=10; loop++){loop*=2;if(loop12)break;}System.out.println(loop);}}
How many the output statement will be printed?class Marvel{public static void main(String args[]){int Cr;for(Cr=1;Cr-4;Cr--){if(Cr==2){ break;}System.out.println("MESSI = GOAT");}}}
import java.net.*;class networking{public static void main(String[] args) throws Exception{URL obj = new URL("https://www.sanfoundry.com/javamcq");URLConnection obj1 = obj.openConnection();int len = obj1.getContentLength();System.out.print(len);}}