Page 1 of 1

What will be the output of the following Java snippet, if attempted to compile and run this code with command line argum

Posted: Wed Jul 13, 2022 7:46 pm
by answerhappygod
advertisement


var adpushup = window.adpushup || {};
adpushup.que = adpushup.que || [];
adpushup.que.push(function () {
if (adpushup.config.platform === "MOBILE") {
adpushup.triggerAd("e25be634-2f62-4ed5-978b-3aaec04c8aca");
} else if ((window.outerWidth <= 768) || (window.outerWidth == 0)) {
adpushup.triggerAd("e25be634-2f62-4ed5-978b-3aaec04c8aca");
}
});
public class abc{ int a=2000; public static void main(String argv[]) { System.out.println(argv[1]+" :-Please pay Rs."+a); }}
a) Compile time error
b) Compilation but runtime error
c) Compilation and output Rakesh :-Please pay Rs.2000
d) Compilation and output Sharma :-Please pay Rs.2000