Home

Which are the valid ways to create DataInputStream streams?

A. new DataInputStream(new File("in.dat"));

B. new DataInputStream(new FileInputStream("in.dat"));

C. new DataInputStream("in.dat");

D. new DataInputStream("in.data","r");

You can do it
  1. Which javadoc tag is used to denote a comment for methods parameters?
  2. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  3. Any method in a supper class can be over ridden in its subclass.
  4. JSP files creates ________________
  5. With javadoc, which of the following denotes a javadoc comment?
  6. Which of the following keywords are used to control access to a class member?
  7. An EJB is a server-side component that encapsulates the business logic of an application
  8. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  9. A string object can not be modified after it is created.
  10. It is perfectly legal to refer to any instance variable inside of a static method.
  11. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  12. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  13. We can add more than one class(es) at the time of compilation Java Beans.
  14. A method declared as static can not access non-static class members.
  15. Which of the following methods can be used to change the size of a size() *resize()
  16. The modulus operator (%) can be used only with Integer operands.
  17. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  18. All the bitwise operators have the same level of precedence in Java.
  19. Java is fully object oriented programme.
  20. Which key word can protect a class in package from accessibility by the classes outside the package?
  21. Submit button always fires doPost(...)
  22. Which exception is thrown by the read() method of InputStream class?
  23. Any class may be inherited by another class in the same package.
  24. putValue(...) method takes _____________________-
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. It is an error to have a method with the same signature in both the super class and its subclass.
  27. In a single Servlet class we can use____________
  28. DataInput is
  29. EJBs can be of the following type(s)None of the above
  30. Connection, Statement are interfaces and ResultSet is a class.