What is the output of this code snippet? public class Test…
What is the output of this code snippet? public class Test { public static void main(String[] args) { String temp = “Where does the phrase \”double double toil and trouble\” originate?,Hocus Pocus,Halloween,Macbeth,This phrase actually comes from, William Shakespeare’s \”Macbeth\”.”; System.out.println(temp.split(“,”, 5).length); } }