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 does java ide mean?
What is r * in math?
How to Sort Strings which are given in List and display in ascending order without using java api.
public class AboutStrings{ public static void main(String args[]){ String s1="hello"; String s2="hel"; String s3="lo"; String s4=s2+s3; //to know the hash codes of s1,s4. System.out.println(s1.hashCode()); System.out.println(s4.hashCode()); // these two s1 and s4 are having same hashcodes. if(s1==s4){ System.out.println("s1 and s4 are same."); }else System.out.println("s1 and s4 are not same."); } } Somebody told me that, == operator compares references of the objects. In the above example even though s1 and s4 are refering to same object(having same hash codes), it is printing s1 and s4 are not same. Can anybody explain in detail why it is behaving like this? Thanks in Advance RavuriVinod
What is meant by Servelet? What are the parameters of service method?
Explain the JDB in depth & command line.
please tell me what is wrapper class in java with example ?
What is a layout manager?
How do you implement singleton class?
Why Java doesn’t support multiple inheritance?
Why does java have different data types for integers and floating-point values?
What is a function argument in java?