在JDK1.8中,使用如下语句是否正确? String str="*******"; switch(str) { case "abc": //... break; case "def": //..... break; } 正确 错误 语句 如下 发布时间:2024-04-08 14:23:33