Answer Posted / vikki
using parseInt() method for example
//String to primitive types
int iVal = Integer.parseInt(str);
long lVal = Long.parseLong(str);
float fVal = Float.parseFloat(str);
double dVal = Double.parseDouble(str);
| Is This Answer Correct ? | 32 Yes | 5 No |
Post New Answer View All Answers
What is purpose of applet programming?
Can we override final method?
How does hashset work in java?
What are the drawbacks of singleton class?
Can we override protected method in java?
Why should we use singleton pattern instead of static class?
What are the object and class classes used for?
What is the private method modifier?
explain the difference between jdk and jvm?
What is scope & storage allocation of global and extern variables? Explain with an example
What is the main purpose of serialization in java?
What are daemon Threads in java?
What is difference between null and void?
What is an image buffer?
How do you sort in descending order in java using collections sort?