system.out.println(1 + 3);
Answers were Sorted based on User's Feedback
Answer / white
hey everybody! i am newbie to java.
but with "system.out.println(1 + 3);" hte answer is
"package system does not exist; || system.out.println(1+3);"
becoz java is case sensitive for that matter. the answer
would be 4 if the syntax started with a capital 'S'.
cheers
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / ravi
Here is Compile time error that is system package not exist
| Is This Answer Correct ? | 16 Yes | 7 No |
Answer / sreedhar
System is class ,println method is streem class,out is
static variable of system class,that staic variable calling
class name.thats why write the System.out.println();
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / g.deepa
In this statment,"system" is initial letter is in captial
(S)and with in the double quotes of numbers or letters only
printing on the screen like "1+3".
so it make a complie time error
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / sushma
Gives Compile time error saying that "system cannot be
resolved"
| Is This Answer Correct ? | 1 Yes | 6 No |
What for read() function?
What releases of Java technology are currently available? What do they contain?
What is difference between equals and hashcode method?
How can u increase the heap size in the memory?
Difference between canvas class & graphics class?
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen?
What are exceptions
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.
How arrays are stored in memory in java?
What are benefits of java?
If you are given the name of the function at run time how will you invoke the function?