πŸ“Š JAVA
Q. What will be the output of the following Java program?
class output
{
public static void main(String args[])
{
StringBuffer c = new StringBuffer("Hello");
c.delete(0,2);
System.out.println(c);
}
}
  • (A) He
  • (B) Hel
  • (C) lo
  • (D) llo
πŸ’¬ Discuss
βœ… Correct Answer: (D) llo

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
90
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
88%
Success Rate