StringBuffer - Java Quiz Question


What will be the output of following program?


A
MeritCampusLearn Programming Skills
Old Capacity = 46 New Capacity = 46
Old Capacity = 30 New Capacity = 30
B
MeritCampus LearnProgramming Skills
Old Capacity = 72 New Capacity = 100
Old Capacity = 30 New Capacity = 59
C
MeritCampus LearnProgramming Skills
Old Capacity = 72 New Capacity = 28
Old Capacity = 30 New Capacity = 29
D
Some other output
E
Compilation Error or Runtime Error