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
How to optimize the javac output?
What data structures are used to perform recursion?
What are the advantages of assembly language?
How can we make sure main() is the last thread to finish in java program?
Which class is the superclass for all the classes?
how are methods defined?
What happens when main () method is declared as private?
Explain what access modifiers can be used for methods?
When super keyword is used?
what is the difference between process and thread? : Java thread
Can a string be null?
What does java se mean?
Is object a data type?
Where and how can you use a private constructor?
What is the purpose of the system class in java?