intro to java
TF In Java a class called Book should be stored in a file called Book.class T F The name of a Java variable must be all lowercase, otherwise the program will not run. T F In a Java program a method that does not return anything can either have a return type of void or have no return type listed at all. T F Java methods are public by default, which means they can be called from outside of that file. T F A single System.out.println(...) statement can cause two output lines to be displayed. T F The fields of a class must be set to public so that other classes can access them and interact with that class T F Several System.out.print (...) statements can cause a single line of output to be displayed. T F Variables that are of type int can be stored into double variables, but double variables cannot be conversely stored into an int variable. TF To end a Java program the break statement may be used. TF Any code that can be written with a switch-case statement could also be written with multiple if- else statements and vice versa T F When an if statement is nested in the if clause of another statement, the only time the inner if statement is executed is when the boolean expression of the outer if statement is true. The following statements in Java would be useful for helping check if the length of a String is 3 characters long String name - "123"; if (name.length() - 3) System.out.println("Length is three."); TFBoth compareTo () and equals() methods can be used to compare two strings in Java, T F The output of the following statements is: 10 Done int y - 4; intz - 6; System.out.print(""+ 2 + y); System.out.println(" Done"); F Comments that begin with /* can be processed by javadoc