Home

Which of the following methods can be used to change the size of a
size() *
resize()

A. component

B. dimension()

C. setSize()

D. size()

You can do it
  1. Which of the following represent legal flow control statements?
  2. A string object can not be modified after it is created.
  3. A panel can not be added to another panel.
  4. The setBackground() method is part of the class
  5. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  6. The programmer must explicitly create the system .in and system .out objects.
  7. A constructor must always invoke its supper class constructor in its first statement.
  8. Every method of a final in class is implicitly final.
  9. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  10. What is java -g used for?
  11. The concept of multiple inheritance is implemented in Java by
  12. A class may be both abstract and final.
  13. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  14. Give file is a file object, which of the following are legal statements to create a new file.
  15. When we implement the Runnable interface, we must define the method
  16. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  17. An EJB is a server-side component that encapsulates the business logic of an application
  18. We can add more than one class(es) at the time of compilation Java Beans.
  19. Given the codeString s = new String("abc");Which of the following calls are valid?
  20. Declaring a method synchronized guarantees that the deadlock cannot occur.
  21. Declarations can appear anywhere in the body of a Java method.
  22. Which of the following are keywords?
  23. executeUpdate automatically updates data because___________
  24. Frames and applets cannot be used together in the same program.
  25. The check box group class is a subclass of the component class.
  26. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  27. When we invoke repaint () for a Component, the AWT invokes the method:
  28. Which exception is thrown by the read() method of InputStream class?
  29. Which of the following are the wrapper classes?
  30. class.forName(...) creates an instance of java ODBC driver