Vertical Software interview question

How to initialize a string

Interview Answers

Anonymous

25 Aug 2019

String str = new String("Java Programming"); String str = "Java Programmer"; String is Data type in Java programming . Str is variable with type String.

Anonymous

25 Jan 2020

String str = "1234"; int str1 = Integer.parseInt(srt); System.out.println("str1");

Anonymous

9 Oct 2018

How to convert string to int

3