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. A final class may not have any abstract method.
  2. A variable declared inside the for loop control can not be referenced out side the loop.
  3. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  4. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  5. The check box group class is a subclass of the component class.
  6. Which of the following methods can be used to change the size of a size() *resize()
  7. In order to connect to a database through java program we must create _______-
  8. The name of a Java program file must match the name of the class with the extension Java.
  9. When we implement the Runnable interface, we must define the method
  10. We can add more than one class(es) at the time of compilation Java Beans.
  11. The programmer must explicitly create the system .in and system .out objects.
  12. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  13. Which are the valid ways to create DataInputStream streams?
  14. A panel can not be added to another panel.
  15. A Java monitor must either extend thread class or implement Runnable interface.
  16. In a single Servlet class we can use____________
  17. A class may be both abstract and final.
  18. The setBackground() method is part of the class
  19. Objects are passed to a method by use of call-by-reference.
  20. Which key word can protect a class in package from accessibility by the classes outside the package?
  21. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  22. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  23. An individual array element that is passed to a method and modified in that method will contain the…
  24. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  25. DataInput is
  26. Given the codeString s = new String("abc");Which of the following calls are valid?
  27. Which of the following control expressions are valid for an if statement?
  28. The modulus operator (%) can be used only with Integer operands.
  29. A JSP file can be stored_________________
  30. Java is fully object oriented programme.