What is the correct answer?


A variable declared inside the for loop control can not be referenced out side the loop.

A. True

B. False

Correct Answer :

A. True

Related Questions

Members of a class specified as private are accessible only to the methods… When present, package must be the first no comment statement in the file. The use of protected keyword to a member in a class will restrict its… If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… Any class may be inherited by another class in the same package. Which of the following methods belong to the String class? Two methods cannot have the same name in Java. Declaring a method synchronized guarantees that the deadlock cannot occur. What is error in the following class definitions? abstract class… The modulus operator (%) can be used only with Integer operands. When we invoke repaint () for a Component, the AWT invokes the method: An individual array element that is passed to a method and modified in… Which of the following control expressions are valid for an if statement? Consider the following statements: int x = 10, y = 15; x = ((x < y)… A panel can not be added to another panel. When X is a positive number the operations x>> 2 and x>>>2… Which of the following statements are valid array declarations? Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… Which key word can protect a class in package from accessibility by the… A static class method can be invoked by simply using the name of the method… Declarations can appear anywhere in the body of a Java method. A constructor must always invoke its supper class constructor in its first… Frames and applets cannot be used together in the same program. It is an error if a class with one or more abstract methods is not explicitly… When we implement an interface method, it should be declared as public. The keywords reserved but not used in the initial version of Java re: Objects are passed to a method by use of call-by-reference. Which are the valid ways to create DataInputStream streams? What is java -g used for? putValue(...) method takes _____________________-