Home

When we invoke repaint () for a Component, the AWT invokes the method:

A. draw()

B. update()

C. show()

D. paint()

You can do it
  1. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  2. The use of protected keyword to a member in a class will restrict its visibility as follows:
  3. Which of the following are the wrapper classes?
  4. All methods in an abstract class must be declared abstract.
  5. Which of the following methods can be used to change the size of a size() *resize()
  6. Any class may be inherited by another class in the same package.
  7. Consider the following class definitions: class maths { student student1; } class student { String name;…
  8. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  9. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  10. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  11. Which javadoc tag is used to denote a comment for methods parameters?
  12. executeUpdate(------------) returns ___________
  13. The import statement is always the first no comment statement in a Java program files.
  14. The setBackground() method is part of the class
  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. A package is a collection of
  18. The name of a Java program file must match the name of the class with the extension Java.
  19. A variable declared inside the for loop control can not be referenced out side the loop.
  20. Which exception is thrown by the read() method of InputStream class?
  21. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  22. Which of the following will produce a value of 10 if x = 9.7?
  23. Every method of a final in class is implicitly final.
  24. Which of the following classes are available in the java.lang package?
  25. When we implement an interface method, it should be declared as public.
  26. We can over load methods with differences only in their return type.
  27. Objects are passed to a method by use of call-by-reference.
  28. A panel can not be added to another panel.
  29. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  30. A method declared as static can not access non-static class members.