πŸ“Š JAVA
Q. What will be the output of the following Java code?
class output
{
public static void main(String args[])
{
String c = "Hello i love java";
int start = 2;
int end = 9;
char s[]=new char[end-start];
c.getChars(start,end,s,0);
System.out.println(s);
}
}
  • (A) Hello, i love java
  • (B) i love ja
  • (C) lo i lo
  • (D) llo i l
πŸ’¬ Discuss
βœ… Correct Answer: (D) llo i l

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
220
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
94%
Success Rate