Search
.Management Sciences
Category: Java concepts and its programming
Which metrhods are utilized to control the access to an object in multi threaded programming ?
A. Synchronized methods
B. Asynchronized methods
C. Serialized methods
D. None of above
Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
A. From within protected methods you do not have access to public methods.
B. This method is only accessible from inside the class itself and from inside all subclasses.
C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined.
D. This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.
In Java byte, short, int and long all of these are ____________?
A. signed
B. unsigned
C. Both of the above
D. None of these
In java, gc() method is available in which package ?
A. java.io package
B. java.lang package
C. java.awt package
D. java.util package
Which of the following statements about arrays is syntactically wrong ?
A. arrayName[] p = new arrayName[5];
B. arrayName p[][] = new arrayName[2][];
C. arrayName[] p [];
D. arrayName p[5];
Java is a _______________language?
A. moderate typed
B. strogly typed
C. weakly typed
D. none of these
Process of creating exact copy of the existing object is called_______________?
A. overloading
B. overriding
C. cloning
D. coping
Smallest individual unit in java program is known as____________________?
A. token
B. string
C. literal
D. operator
Package of drawstring() method is _________________?
A. java.awt
B. javax.swing
C. java.applet
D. java.io
Recent Comments