Answer Posted / akshya kumar
using the wrapper classes, by using the function in
following way:
int i_var = Integer.parseInt(string_var); //and as in
answer #2
Integer, Float, Long are wrapper classes predefined in JAVA
with methods parseInt(), parseFloat etc respectively.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are aggregate functions explain with examples?
What are the changes in java.io in java 8 ?
Is null in java?
Why pass by reference is not possible in java?
What is final method?
Is minecraft java edition free?
What is final, finally, finalize?
What is difference between an object and a class?
What is the maximum size of byte array in java?
What is the difference between heap memory and stack memory?
Why string is immutable or final in java
explain different ways of using thread? : Java thread
Tell us something about an iterator.
Does constructor be static?
What are the pillars of java?