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
Can we make constructors static?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
Can memory leak in java?
How does class forname work in java?
Are arrays dynamic in java?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is procedure overloading?
What is static and final keyword in java?
What is the purpose of lambda expressions?
How a string is stored in memory?
What is * argv?
How do you escape json?
Does printwriter create a file?
Discuss different types of errors that generally occur while programming.
How can I right-justify a string?