No Answer is Posted For this Question
4. Explain IF you are remotely logged on to a Solaris machine, What command would you execute?
mt f /dev/rmt/0 status
D:Nav.Direction d = Nav.Direction.NORTH;
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:End of method.
run.
java.lang.RuntimeException: Problem
E:run.
java.lang.RuntimeException: Problem
End of method.
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; }
13. 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: 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().
C:Change line 13 to:
public Sub() { this(5); }
D:Change line 13 to:
public Sub() { super(5); }
C:any class in the test package
D:class Man { private Dog bestFriend; }
B.It disables the update of file access times