Home

We can add more than one class(es) at the time of compilation Java Beans.

A. True.

B. False.

You can do it
  1. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  2. Java always provides a default constructor to a class.
  3. Given the codeString s = new String("abc");Which of the following calls are valid?
  4. Which of the following will produce a value of 22 if x=22.9:
  5. The check box group class is a subclass of the component class.
  6. The import statement is always the first no comment statement in a Java program files.
  7. With javadoc, which of the following denotes a javadoc comment?
  8. putValue(...) method takes _____________________-
  9. One the features of is that an array can store many different types of values.
  10. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  11. A static class method can be invoked by simply using the name of the method alone.
  12. Which are the valid ways to create DataInputStream streams?
  13. Consider the following class definitions: class maths { student student1; } class student { String name;…
  14. A class may be both abstract and final.
  15. A catch can have comma-separated multiple arguments.
  16. A package is a collection of
  17. Throwing an exception always causes program termination.
  18. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  19. The use of protected keyword to a member in a class will restrict its visibility as follows:
  20. Declarations can appear anywhere in the body of a Java method.
  21. Any class may be inherited by another class in the same package.
  22. A method declared as static can not access non-static class members.
  23. Which of the following are keywords?
  24. What does the following line of code do?TextField text=new TextField(10);
  25. The keywords reserved but not used in the initial version of Java re:
  26. A final class may not have any abstract method.
  27. Submit button always fires doPost(...)
  28. Which of the following classes are available in the java.lang package?
  29. What is java -g used for?
  30. Which of the following statements are valid array declarations?