Home

If m and n are int type variables, what will be the result of the expression
'm % n' when m = -14 and n = -3?

A. 4

B. 2

C. -2

D. -4

You can do it
  1. Any class may be inherited by another class in the same package.
  2. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  3. It is perfectly legal to refer to any instance variable inside of a static method.
  4. In the code below, what data types the variable x can have?
  5. Which are the valid ways to create DataInputStream streams?
  6. JSP files creates ________________
  7. When present, package must be the first no comment statement in the file.
  8. A panel can not be added to another panel.
  9. In order to connect to a database through java program we must create _______-
  10. A string object can not be modified after it is created.
  11. Consider the following class definitions: class maths { student student1; } class student { String name;…
  12. DataInput is
  13. Declaring a method synchronized guarantees that the deadlock cannot occur.
  14. The name of a Java program file must match the name of the class with the extension Java.
  15. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  16. Which of the following statements are true?
  17. Java is fully object oriented programme.
  18. A class may be both abstract and final.
  19. Two methods cannot have the same name in Java.
  20. A method declared as static can not access non-static class members.
  21. executeUpdate automatically updates data because___________
  22. A Java monitor must either extend thread class or implement Runnable interface.
  23. In RMI before running the client program we must start RMI Registry.
  24. The methods wait() and noify() are defined in
  25. A final class may not have any abstract method.
  26. One the features of is that an array can store many different types of values.
  27. The use of protected keyword to a member in a class will restrict its visibility as follows:
  28. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  29. The keywords reserved but not used in the initial version of Java re:
  30. Which exception is thrown by the read() method of InputStream class?