Computer Science, asked by ghostgamer5564, 9 months ago

string s = "25"; int x = Integer.parseInt(s); system.out.println(x);

output ?​

Answers

Answered by asthadixit05
0

Answer:

25

Explanation:

  • If it's in Java, then ya it will be 25 only.
  • Difference between parseInt() and valueOf():
  • parseInt() parses the string and returns the primitive integer type. However, valueOf() returns an Integer object.
  • Note: valueOf() uses parseInt() internally to convert to integer.

  • Plzzzz mark it brainliest.
Similar questions