Answer Posted / akshya kumar
we can also use valueOf method of wrapper classes like:
int i_var = Integer.valueOf(string_var);
float f_var = Float.valueOf(string_vatr);
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Can a constructor have different name than a class name in java?
What is the generic function?
How do you declare an empty string?
What is the difference between notify and notifyall method?
a thread is runnable, how does that work? : Java thread
How do you sort in ascending order in java?
What are the benefits of immutable objects?
Explain about features of local inner class?
When will we prefer to use set and list in java and why?
What do you mean by Hash Map and Hash Table?
Can list be null in java?
What are features of java?
Give reasons supporting that string is immutable.
What do you understand by java virtual machine?
What is stream api in java8?