在Java中,以下哪个选项正确地表示了一个字符串常量? A. HelloWorld B. "HelloWorld" C. 'HelloWorld' D. Hello World 答案解析 在Java中,字符串常量需要用一对英文半角格式的双引号括起来。因此,选项B是正确的表示方法。 正确答案:B