在Java中,语句的种类可分为:表达式语句、声明语句、控制流程语句。下面将介绍这三种语句:表达式语句赋值表达式++或–表达式方法调用对象创建表达式       以上四种表达式及其复合表达式,在加上分号(;)就成为了相应的表达式语句,如下所示:// assignment statementaValue = 8933.234;// increment statementaValue++;// method invocation statementSystem.out.println(“Hello World!”);// object creation statementBicycle myBike = new Bicycle();声明语句  形如:// declaration statementdouble aValue = 8933.234;控制流程语句语句块选择语句(decision-making statements )if-then和if-then-elseif(boolean-exprenssion){ statements;}//或者if(boolean-exprenssion){ statements;}else{ statements;}  下面的例子中出现了else ifswitch循环语句forwhiledo-while分支语句breakcontinuereturn