-
-
Which of the following methods are defined on the Graphics class:
A) drawLine(int, int, int, int)B) drawImage(Image, int, int, ImageObserver)C) drawString(String, int, int)D) add(Component);E) setVisible(boolean);F) setLayout(Object);
-
Which of the following statement(s) are true?
A) The default layout manager for an Applet is FlowLayoutB) The default layout manager for an application is FlowLayoutC) A layout manager must be assigned to an Applet before the setSize method is calledD) The FlowLayout manager attempts to honor the preferred size of any components
-
Which layout should you use to organize the components of a container in a tabular form?
A) CardLayoutB) BorederLayoutC) FlowLayoutD) GridLayout
-
Which of the following are passed as an argument to the paint( ) method?
A) A Canvas objectB) A Graphics objectC) An Image objectD) A paint object
-
JSP technology is extensible
Skill/Topic: FundamentalsA) TrueB) FalseExplanation: JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.
-
All statements in Java end with a _____________
A) ColonB) SemiColonC) HypenD) Dot
-
Java support RMI. What does this RMI stands for?
A) Random Memory InterfaceB) Remote Method InvocationC) Random Method InvocationD) Ramote Memory Interface
-
Java is Architectural _____________
A) DependentB) NeutralC) IndependentD) None of the above
-
Java was conceived by __________
A) MicrosoftB) OracleC) Sun MicrosystemD) Intel
-
What is true regarding the uses of servlets
A) A servlet can handle multiple requests concurrently, and can synchronize requests. This allows servlets to support systems such as on-line conferencing.B) Servlets can forward requests to other servers and servlets.C) Servlets can be used to balance load among several servers that mirror the same content, and to partition a single logical service over several servers, according to task type or organizational...
-
What are LOCAL and GLOBAL variables?
Local variables lifetime ends when the Procedure ends. Global variables lifetime begins at the start of the script and ends at the end of the script and it can be used by any procedure within the script. Declaring a variable by using the keyword PRIVATE makes the variable global within the script, but if declared using PUBLIC, then all scripts can refer the variable.
-
What is the difference between an Applet and an Application?
1. Applets can be embedded in HTML pages and downloaded over the Internet whereas Applications have no special support in HTML for embedding or downloading.2. Applets can only be executed inside a java compatible container, such as a browser or appletviewer whereas Applications are executed at command line by java.exe or jview.exe.3. Applets execute under strict security limitations that disallow certain...
-
What is the difference between a while statement and a do statement
A while statement checks at the beginning of a loop to see whether the next loop iterationshould occur. A do statement checks at the end of a loop to see whether the next iterationof a loop should occur. The do statement will always execute the body of a loop at leastonce.