What does "1"+2+4 evaluate to?
Answers were Sorted based on User's Feedback
Answer / hk
Anything which follows string is converted to String.
Hence, "1" is string, and the digits 2 and 4 which comes
after this, also become part of string only.
So the answer is 124
| Is This Answer Correct ? | 70 Yes | 2 No |
Answer / hk & kmbkrishnan
Write a program in java and execute it with the following
code bellow:
System.out.println("1"+2+4);
And see the output.
Thanks & Regards
Hk and Kmbkrishnan
| Is This Answer Correct ? | 28 Yes | 4 No |
Answer / akash
it is 124 as it is ins tring format and after that what ever
b there is considered as string
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / shikha
answer is 124 as "1" in the starting is consider as a
string, therefore all other nos after that is consider as a
string unless brackets are not used.
| Is This Answer Correct ? | 7 Yes | 0 No |
Difference Between JavaScript and ECMAScript?
What are self Executing Functions?
How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...
What is the need of javascript?
What are the data types supported by javascript?
What is difference between ajax and javascript?
What is difference between undefined variable and undeclared variable?
How to import all exports of a file as an object.
What is the difference between remove() and removeChild()?
How to create objects in JavaScript?
What is the function of deferred scripts?
How can JavaScript be used?
0 Answers Deloitte, JPMorgan Chase,