toString() in java
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
toString() in java
plz give brief knowledge about toString() method, and also told that if we have two objects .i.e. s1 and s2, then you call the toString() method explicitly for s1, and why you not call the toString() method for s2 explicitly, but implicity.
Diya- Monstars
-
Posts : 364
Join date : 2011-02-08
Age : 33
Character sheet
Experience:
(10/500)
Re: toString() in java
toString() can be called both implicitly and explicitly. The example is just to show that it can be called both implicitly and explicitly.
For s1 we have called ourself. And s2 toString() has been called automatically.
For s1 we have called ourself. And s2 toString() has been called automatically.
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Similar topics
» what is tostring() & finalize() in java
» Enumeration in java ?
» What is difference b/w java Buzzwords and java Keywords?
» Java is to Write Once Run Anywhere thats what java language
» what is difference b/w Java and Java Script?
» Enumeration in java ?
» What is difference b/w java Buzzwords and java Keywords?
» Java is to Write Once Run Anywhere thats what java language
» what is difference b/w Java and Java Script?
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Yesterday at 12:44 pm by ali001
» FVS Forex - Live Forex Signals
Mon May 27, 2024 9:54 am by ali001
» MedidexConnect Pharmacist Chat
Wed May 22, 2024 1:32 pm by ali001
» FISH PBs
Mon May 20, 2024 11:56 am by ali001
» Watchat Streaming World IPTV
Mon May 20, 2024 6:26 am by ali001
» Used Car Auctions USA
Sat May 18, 2024 10:16 pm by ali001
» Amuse - Become Smarter
Wed May 15, 2024 10:50 am by ali001
» Fort Lock
Sat May 04, 2024 11:49 am by ali001
» house disrepair claims
Thu May 02, 2024 4:29 pm by Ibad Khan Buledi