Home

What is java -g used for?

A. Using the jdb tool

B. Executing a class with optimization turned off

C. To provided information about deprecated methods

D. Non of the above

You can do it yup
  1. Give file is a file object, which of the following are legal statements to create a new file.
  2. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  3. Which of the following will produce a value of 22 if x=22.9:
  4. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  5. Servlet can have ___________
  6. We would like to make a member of a class visible in all subclasses regardless of what package they…
  7. Any method in a supper class can be over ridden in its subclass.
  8. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  9. The import statement is always the first no comment statement in a Java program files.
  10. putValue(...) method takes _____________________-
  11. When we invoke repaint () for a Component, the AWT invokes the method:
  12. A JSP file can be stored_________________
  13. Which key word can protect a class in package from accessibility by the classes outside the package?
  14. A static class method can be invoked by simply using the name of the method alone.
  15. In order to connect to a database through java program we must create _______-
  16. executeUpdate(------------) returns ___________
  17. Which of the following are the wrapper classes?
  18. Which of the following methods can be used to draw the outline of a square?
  19. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  20. class.forName(...) creates an instance of java ODBC driver
  21. Consider the following class definitions: class maths { student student1; } class student { String name;…
  22. It is an error to have a method with the same signature in both the super class and its subclass.
  23. In a single Servlet class we can use____________
  24. We can over load methods with differences only in their return type.
  25. Which of the following methods belong to the String class?
  26. Which of the following represent legal flow control statements?
  27. Any class may be inherited by another class in the same package.
  28. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  29. Which of the following are not keywords?
  30. Which javadoc tag is used to denote a comment for methods parameters?