+ 14
[SUGGESTION] Quiz sugestion
since there are too many math-related question, why don't we submit debug-related question. short code with question to find the error. it will be very useful to learn syntax, grammar and debugging code.
14 ответов
+ 9
I have one for Java--
public class Java{
public static void main(string[]args){
System.out.print("Hello World");
}
}
What's the error?
+ 14
oh i get it now.
string is not valid. it should be String.
+ 12
@Davney that is good question.
at first i think it is printIn but after running on play ground i realize that.
i need more practice in Java.😥
+ 11
is it printIn?
+ 9
you are correct! it should be String not string:)
+ 9
@gjh4cker
i did it, but still pending.
i submit more than 15 today.
+ 4
We should be more dealing with finding the error! semantic errors and other not only calcution
+ 2
try String not string
+ 1
the disadvantage of this though is that one will see a lot of incorrect code and if one can't find the solution to that faulty code in the limited quiz time the wrong code will over time stick in one's head
+ 1
Why don't you just create a question and submit it through Quiz Factory mate?
+ 1
You are correct, the string is not valid. it should be String +7
0
You have to save with the same class name cause you are using public
0
class Demo
{
public static void main(String[] args)
{
byte a=10;
byte b=20;
byte c=a+b;
system.out.print(c);
What will be the output?