Computer Science, asked by harsha116, 1 year ago

A method that converts a string to a primitive integer data type-
Explain with the help of examples,the purpose of default in a switch statement.
The above questions are of the programming language java. plz answer these in order to gain the brainliest answer

Answers

Answered by alpha71
1
Interger.parseInt() in Java

the purpose of default in switch statement is to give a by default case that executes if no case matches the value of variable in switch case statement

alpha71: added it
alpha71: do you already know the answer
alpha71: ok
Similar questions