Login Register






What the output for this? filter_list
Author
Message
What the output for this? #1
public class logic1{

public static void main(String []args){

System.out.println( " = " +1 +2);
}
}
comment with supported reason....

Reply

RE: What the output for this? #2
Explanations are available on Google, just a search away http://stackoverflow.com/questions/11035...d-not-abc5
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: What the output for this? #3
This is the same way you change a int to a string, all you do is

int num = 1342;
String number = "" + num;

It is basically the same, just inputs what you put infront of it along with simply just your numbers Tongue

Reply

RE: What the output for this? #4
If you append something onto a string, then that too will become a string therefore:

Code:
public class logic1 { public static void main(String []args) { System.out.println( " = " +1 +2); } }

Will print out:

= 12

[+] 1 user Likes Banadmin's post
Reply