KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
how does this work? I can't seem to find an answer. boolean bool=true; System.out.println("the value of bool is : " + true); //or System.out.println("the value of bool is : " + bool); What are the things that are going on behind the scene? how does the boolean gets casted to the String as a boolean cannot be implicitly type casted? Is Autoboxing/Unboxing involved? Are methods like toString() or String.valueOf() are involved in some way?
Tags (comma-separated)
Save Edits
Cancel