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. A package is a collection of
  2. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  3. Every method of a final in class is implicitly final.
  4. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  5. What does the following line of code do?TextField text=new TextField(10);
  6. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  7. The methods wait() and noify() are defined in
  8. The setBackground() method is part of the class
  9. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  10. In RMI we invoke client method from remote server
  11. In RMI before running the client program we must start RMI Registry.
  12. Java is fully object oriented programme.
  13. putValue(...) method takes _____________________-
  14. One the features of is that an array can store many different types of values.
  15. Which of the following statements are valid array declarations?
  16. It is an error to have a method with the same signature in both the super class and its subclass.
  17. Which of the following statements are true?
  18. Which of the following control expressions are valid for an if statement?
  19. Which of the following command lines options generates documentation for all classes and methods?
  20. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  21. A string object can not be modified after it is created.
  22. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  23. We can over load methods with differences only in their return type.
  24. The check box group class is a subclass of the component class.
  25. All methods in an abstract class must be declared abstract.
  26. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  27. An individual array element that is passed to a method and modified in that method will contain the…
  28. We can add more than one class(es) at the time of compilation Java Beans.
  29. Which key word can protect a class in package from accessibility by the classes outside the package?
  30. Java always provides a default constructor to a class.