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 yup
  1. With javadoc, which of the following denotes a javadoc comment?
  2. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  3. Which of the following statements are valid array declarations?
  4. executeUpdate automatically updates data because___________
  5. Any class may be inherited by another class in the same package.
  6. When present, package must be the first no comment statement in the file.
  7. Members of a class specified as private are accessible only to the methods of the class.
  8. Which of the following methods can be used to change the size of a size() *resize()
  9. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  10. Which of the following are keywords?
  11. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  12. Which key word can protect a class in package from accessibility by the classes outside the package?
  13. A static class method can be invoked by simply using the name of the method alone.
  14. An EJB is a server-side component that encapsulates the business logic of an application
  15. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  16. Which of the following classes are available in the java.lang package?
  17. It is perfectly legal to refer to any instance variable inside of a static method.
  18. An individual array element that is passed to a method and modified in that method will contain the…
  19. Which javadoc tag is used to denote a comment for methods parameters?
  20. Servlet has ___________
  21. Throwing an exception always causes program termination.
  22. All the bitwise operators have the same level of precedence in Java.
  23. The modulus operator (%) can be used only with Integer operands.
  24. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  25. Which of the following methods can be used to remove a component from the display?
  26. Consider the following class definitions: class maths { student student1; } class student { String name;…
  27. JdbcOdbcDriver is an object of Object class
  28. Session bean
  29. JSP files creates ________________
  30. Java always provides a default constructor to a class.