Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How to convert string to int in java?



How to convert string to int in java?..

Answer / hrindows@gmail.com

"class Scratch{
public static void main(String[] args){
String str = ""50"";
System.out.println( Integer.parseInt( str )); // Integer.parseInt()
}
}"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can substring create new object?

0 Answers  


Can we override private method in java?

0 Answers  


Variables used in a switch statement can be used with which datatypes?

0 Answers  


If circular link of two objects, then will it be garbage collected ?

3 Answers   TCS,


Describe different states of a thread.

0 Answers  






What do you understand by the term wrapper classes?

0 Answers  


Explain covariant method overriding in java.

0 Answers  


How does access modifiers work?

1 Answers   Wipro,


Is age discrete or continuous?

0 Answers  


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


Define nashorn in java8.

0 Answers  


Why do we use bufferedreader?

0 Answers  






Categories