Home

In order to connect to a database through java program we must create _______-

A. Connection, Statement, ResultSet

B. Connection, ResultSet

C. Statement< ResultSet

D. Connection, Statement

You can do it
  1. In a single Servlet class we can use____________
  2. Which of the following statements are true?
  3. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  4. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  5. Declaring a method synchronized guarantees that the deadlock cannot occur.
  6. To delete a file, we can use an instance of class file.
  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. Java is fully object oriented programme.
  10. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  11. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  12. A variable declared inside the for loop control can not be referenced out side the loop.
  13. A final class may not have any abstract method.
  14. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  15. Which are the valid ways to create DataInputStream streams?
  16. Which of the following are not keywords?
  17. When the string objects are compared with ==, the result is true If the strings contain the same values.
  18. In the code below, what data types the variable x can have?
  19. Which key word can protect a class in package from accessibility by the classes outside the package?
  20. Java always provides a default constructor to a class.
  21. Which javadoc tag is used to denote a comment for methods parameters?
  22. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  23. An EJB is a server-side component that encapsulates the business logic of an application
  24. Which of the following are keywords?
  25. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  26. It is perfectly legal to assign a subclass object to a supper class reference.
  27. Which of the following represent legal flow control statements?
  28. We can over load methods with differences only in their return type.
  29. We can add more than one class(es) at the time of compilation Java Beans.
  30. When we implement an interface method, it should be declared as public.