What will be the output of the following Java program, Command line exceution is done as – “java Output This is a command Line”?
class Output
{
public static void main(String args[])
{
System.out.print(“args[3]”);
}
}
a) java
b) is
c) This
d) command
Answer: d
Related Posts
The enumeration order becomes implementation dependent and non-interoperable if ___________
What happens in the following javaScript code snippet?
var count = 0;
while (count < 10)
{
console.log(count);
count++;
}In the following switch syntax, the expression is compared with the case labels using which of the following operator(s)?
switch(expression)
{
statements
}The “var” and “function” are __________
When an empty statement is encountered, a JavaScript interpreter __________
What is a block statement in JavaScript?
Which is a more efficient JavaScript code snippet?
Code 1 :
for(var num=10;num>=1;num–)
{
document.writeln(num);
}
Code 2 :
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}
Join The Discussion