One object, it is just that you are re-assigning the same String object on the heap to the same String reference. line 1 and line 2 are two alternatives of creating and initializing a string so one object.
The string reference s is now re-assigned to a completely new object on the heap denoted by "jkl". The String instance created above may be garbage collected.....
Do read up on String immutability in
Java. You may find it easy to tackle these kinda-questions..
Regds,
Abhijit.
[
SCJP 4/5, Zend Certified Engineer for PHP 5, OCPWCD 5, MySQL Certified Associate, Python Certified by OReilly]