B.It disables the update of file access times
D:class Man { private Dog bestFriend; }
C:any class in the test package
C:Change line 13 to:
public Sub() { this(5); }
D:Change line 13 to:
public Sub() { super(5); }
A: It is possible for more than two threads to deadlock at once.
F:If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting
invocations of Thread.yield().
8. Tell me What is native keyword and abstract keyword?
Native keyword is prefixed with method name when we want that method to be implemented using a native language like c and c++. So in the class we only declare the method and the definition of the method is in the dll file.
Abstract key word is used to mark a method or a class as logically incomplete. The class which extends this class has to provide the definition of the method or has to declare the derived class as abstract.
We can not declare a native method inside a interface because by declaring a method in an interface we want all the implementers to give definitions to the methods defined. But by declaring a method native we mean that the implementation will come from some native language.
A:public int blipvert(int x) { return 0; }
C:private int blipvert(long x) { return 0; }
E:protected int blipvert(long x) { return 0; }
F:protected long blipvert(long x) { return 0; }
G:protected long blipvert(int x, int y) { return 0; }
D: 150, 150, 150
D:End of method.
run.
java.lang.RuntimeException: Problem
E:run.
java.lang.RuntimeException: Problem
End of method.
B:public abstract class Circle extends Shape {
private int radius;
}
E:public class Circle extends Shape {
private int radius;
public void draw() {/* code here */}
D:Nav.Direction d = Nav.Direction.NORTH;
17. Explain IF you are remotely logged on to a Solaris machine, What command would you execute?
mt f /dev/rmt/0 status
Warning: Trying to access array offset on value of type null in /home/u313694809/domains/interviewquestionsanswers.org/public_html/subcategoryLive.php on line 488