Sunday, October 7, 2007

COMPUTER SCIENCE QUESTIONS AND ANSWERS PART – V

******* JAVA *************

You compare two Strings by using


String parsing can be done by



A variable's value CANNOT be changed when it is represented by


What is the data type of result in the following? short X=2; ++X;


Which is NOT true?



Which is NOT true?


_________ has more precedence over >>> in Java.


Choose the one that fits best: >>> indicates


The comparison operator returns


Choose the one that is NOT correct: byte b1 = 2, b2 = 3, b3 ;


Choose the correct answer: int X = 1, Y, Z; Y = ++X; Z = X++;


What is the default access control?


___________ - accessible to other members of the same package


___________ - accessible to all methods in all packages


___________ - accessible only to methods of the same class or to any subclass but not to
unrelated classes, even if they are from the same package.



The practice of defining multiple methods which have the same name but different return
types or argument lists is called



If a subclass needs to dispose system resources or to perform other cleanup, ___________
is used.



Choose the correct one.


Which is NOT true with respect to static initializer?


Which is NOT true for an abstract class?


A class inherits an interface using the _________ keyword


Finally keyword is used



Which is NOT true for JAR files?


________ causes the currently executing thread object to temporarily pause and allow
other threads to execute.



Java has







JAVA

A program that is designed to execute as part of a HTML Web page is called an


Applets methods are called in which order?


How do you pass in different arguments to an Applet?


The getParameter returns


Can a container hold another container?


The default layout policy for the Applet class is


Graphics class is part of


Default layout for frame is


________ layout is best suited for resizable windows.



You can change the layout policy by using


Irregularly spaced grid can be created by __________ layout.


The borders of a container are represented by __________ object.


The default layout for windows is


Windows when constructed are


___________ is used to reduce animation flicker.


Which Adapter class does not exist?


TreeModel is the one that



Select the one that best fits: DefaultMutableTreeNode is


Select the one that best fits: Jtree control is


JTreePath instances are managed by


______ is used to find whether a particular branch of a tree is ended.


RowMapper interface is used to


Editing tree elements is accomplished by



Editing tree elements can be stopped by


MVC stands for

No comments: