It's not a secret anymore!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubt in a practise question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Doubt in a practise question" Watch "Doubt in a practise question" New topic

Doubt in a practise question

ayush raj
Ranch Hand

Joined: Jan 15, 2012
Posts: 60
What is the output of the following line :

Answer given was :"1213%1$s"

Please explain me how to arrive at the solution??
Joanne Neal

Joined: Aug 05, 2005
Posts: 3415
This should help.

Don't get me started about those stupid light bulbs.
subject: Doubt in a practise question
Similar Threads
Please explain the output of this: This question is from ExamLabs Diagnostic Test
Whizlabs PracticeIII Q4 Wrong?
Split Method in String Class
What is the output of printf?
Implict Cast Narrowing Doubts