Computer Programming MCQs

5739 MCQs  (Page 456 of 574)

Which method of the Applet class displays the result of applet code on screen ?
A. Paint() method
B. Main() method
C. Run() method
D. Drawstring() method
javah stands for ?
A. Java dissasamebler
B. Java header file
C. Java interpreter
D. Java compiler
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
A. Declare the method with the keyword public.
B. Declare the method with the keyword private.
C. Do not declare the method with any accessibility modifiers.
D. Declare the method with the keyword public and private.
What is meaning of jar ?
A. Java array
B. Java architecture
C. Java archived
D. None of these
Hot java is_______________?
A. Web browser
B. Java environment
C. System software
D. Ide
In Java, the word true is ___________________?
A. A boolean literal
B. A java keyword
C. Same as value 0
D. Same as value 1
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