setLength - Java Quiz Question


What will be the output of the following program?


A
Taj Mahal
Taj Mahal
B
Taj Mahal
Taj
C
Compilation Error
D
Runtime Error