Home

What is the correct answer?

4

Declarations can appear anywhere in the body of a Java method.

A. True

B. False

Correct Answer :

A. True


Related Questions

Which of the following classes are available in the java.lang package? Which of the following are the wrapper classes? executeUpdate(------------) returns ___________ A thread can make second thread ineligible for execution by calling the… A constructor must always invoke its supper class constructor in its first… A method declared as static can not access non-static class members. Any class may be inherited by another class in the same package. It is an error to have a method with the same signature in both the super… If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… It is perfectly legal to assign a subclass object to a supper class reference. It is an error to catch the same type of exception in two different catch… It is perfectly legal to refer to any instance variable inside of a static… Which are the valid ways to create DataInputStream streams? Declarations can appear anywhere in the body of a Java method. Which of the following methods belong to the String class? Every call to wait has a corresponding call to notify that will eventually… The setBackground() method is part of the class Which of the following are not keywords? An individual array element that is passed to a method and modified in… Servlet has ___________ The expression (x == y && a<b) is true If either x == y is true or… If m and n are int type variables, what will be the result of the expression'm… Java always provides a default constructor to a class. The concept of multiple inheritance is implemented in Java by Which of the following represent legal flow control statements? Which key word can protect a class in package from accessibility by the… Which of the following represent legal flow control statements? What does the following line of code do?TextField text=new TextField(10); It is an error if a class with one or more abstract methods is not explicitly… Submit button always fires doPost(...)