What does "1"+2+4 evaluate to?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is javascript array dynamic?

491


Is jquery easier than javascript?

467


What is the difference between write and writeln in javascript?

455


What is the best site to learn javascript?

476


When would you use var in your declaration and when you wouldn’t?

529






Can I write javascript in notepad?

515


What is a function in javascript and how does it work?

462


Explain what is pop()method in JavaScript?

668


What is callback?

592


Event bubbling and Event Capturing in JavScript?

557


How many types of javascript are there?

492


What is the difference between call & apply?

482


What is an example of javascript?

449


Difference between window, document, and screen in Javascript?

535


How is it possible to get the total number of arguments that are passed to a function?

541