Link Details

Link 90981 thumbnail
User 111696 avatar

By bloid
via en.newinstance.it
Published: Jun 28 2008 / 14:34

Apparently, with JDK 7 we will have Strings in switch statements. I got a SCPJ certification long time back, but if someone asks me to write a switch statement in a job interview today, I could probably fail: I begun writing Java code in 2000, and I bet I used switch statement six or seven times since then. Half of that times at the beginning for sure, and probably always I should have avoided that in favor of making better object oriented design.
  • 12
  • 1
  • 1480
  • 463

Comments

Add your comment
User 239201 avatar

amphi replied ago:

1 votes Vote down Vote up Reply

Switch is great for some things. And well, sometimes it would be really handy if strings were supported as well.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.