when i call the function as System.out.println("Hi..."+i+"Welcome");
where i initialized the value of i as i=50;
when this statement is executed, how that function is called...
is it called in the way as Sop("hi..."); Sop(i); Sop("welcome");
**please help to understatnd the working..*

Whenever any function is called, the arguments are evaluated first, and their results are the actual working arguments. In this case, the string concatenation is performed first, then the whole string is passed to the function. So, if i = 50, then the string passed to System.out.println() is "Hi...50Welcome". In other words, it is the same as writing


So, to answer your question, System.out.println() is only called once.