Skip to main content
added 141 characters in body
Source Link
user15309136
user15309136

5.1. Kinds of Conversion

This code implicitly casts them to String:

System.out.println("" + 'a' + 'b'); //ab

And this code casts to double:

System.out.println(.8 + 'a' + 'b'); //195.8

This code implicitly casts them to String:

System.out.println("" + 'a' + 'b'); //ab

And this code casts to double:

System.out.println(.8 + 'a' + 'b'); //195.8

5.1. Kinds of Conversion

This code implicitly casts them to String:

System.out.println("" + 'a' + 'b'); //ab

And this code casts to double:

System.out.println(.8 + 'a' + 'b'); //195.8
added 93 characters in body
Source Link
user15309136
user15309136

This code implicitly castcasts them to String:

System.out.println("" + 'a' + 'b'); //ab

And this code casts to double:

System.out.println(.8 + 'a' + 'b'); //195.8

This code implicitly cast them to String:

System.out.println("" + 'a' + 'b'); //ab

This code implicitly casts them to String:

System.out.println("" + 'a' + 'b'); //ab

And this code casts to double:

System.out.println(.8 + 'a' + 'b'); //195.8
Source Link
user15309136
user15309136

This code implicitly cast them to String:

System.out.println("" + 'a' + 'b'); //ab