Welcome to the World of Online Learning:
Hello Friends “This blog helps you to learn Java programming concepts. You can learn Java language at your own speed and time. One can learn concepts of Java language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Write a Java Program to Implement switch statement on strings
PROGRAM: Java Program to Implement switch statement on strings
/*Java Program to Implement switch statement on strings*/
// Java Program to implement String on switch statements in Java
class Main {
public static void main(String[] args) {
// create a string
String language = “Java”;
switch(language) {
case “Java”:
System.out.println(language + ” is famous for enterprise applications.”);
break;
case “JavaScript”:
System.out.println(language + ” is famous for frontend and backend.”);
break;
case “Python”:
System.out.println(language + ” is famous for ML and AI.”);
break;
default:
System.out.println(language + ” not found on record.”);
break;
}
}
}