What is the difference between the expressions String s = “Temporary” and String s = new String(“Temporary “)? Which one is better and more efficient?

All QuestionsCategory: JavaWhat is the difference between the expressions String s = “Temporary” and String s = new String(“Temporary “)? Which one is better and more efficient?
Vaishnavi Talawar asked 3 years ago