(x) Predict the output of the following code snippet: String P = "20", Q="22";
int a = Integer.parseInt(P);
int b = Integer.valueOf(Q);
System.out.printIn(a +""+b);

(a) 20
(b) 20 22
(c) 2220
(d) 22


Solution



(b) 20 22


Contact Us

REACH US

SERVICES

  • CODING
  • ON-LINE PREPARATION
  • JAVA & PYTHON

ADDRESS

B-54, Krishna Bhawan, Parag Narain Road, Near Butler Palace Colony Lucknow
Contact:+ 919839520987
Email:info@alexsir.com