Report Bug

Qus: If s=“123”, which among the following will convert it to an integer?


A. int a=Integer(s);
B. int a=(int)s;
C. int a=parseInt(s);
D. int a=Integer.parseInt(a);


Solution
D. int a=Integer.parseInt(a);



Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad