Java Applet and GUI Programming
Covers Java applet programming, AWT components (TextField, TextArea, MouseEvent, WindowEvent), event handling, JDBC database operations, and core Java concepts including data types and the main method.
Questions
Which of the following Java support systems is a program that provides access to WWW and runs Java applets?
- Web server
- Web browser
- APPLET tag
- None of these
Which of the following Java development kits allows us to run Java applets without using Java compatible browser?
- Java
- Javac
- Appletviewer
- Jdb
Which of the following features of C++ is/are supported by Java?
- Operator overloading
- Template classes
- Pointers
- Destructor function
After compilation of the source program, Java enabled web browser is required to execute ___________ program.
- application
- applets
- assembled
- none of these
Classes in Java come under ___________ data type.
- primitive
- non-numeric
- non-primitive
- none of these
Which of the following methods of TextField class fills the field with string?
- getText()
- setEditable()
- setText()
- None of these
Which of the following methods in applet programming is used when you want the applet area to be redrawn?
- Paint()
- Repaint()
- Update()
- None of these
Which of the following classes in Applet programming defines WINDOW_ACTIVATED constant that can be used to identify them?
- Adapter classes
- MouseEvent Class
- WindowEvent Class
- None of these
Which of the following methods of MouseEvent classes obtains the number of mouse clicks for this event?
- translatePoint()
- getClickCount()
- isPopupTrigger()
- None of these
Which of the following components of an Event class is the method that understands the event and processes it?
- Event-handler
- Event source
- Event object
- None of these
Which of the following keywords in the declaration of the main method declares the method as one that belongs to the entire class and not a part of any object of the class?
- Public
- Static
- Void
- None of these
Which of the following languages was originally called 'Oak'?
- C++
- Java
- PL-1
- None of these
Which of the following back-end tools provides database programming interface for Java programs?
- ODBC
- JDBC
- JDBC Driver Manager
- None of these
Which of the following methods of InputStream class returns the number of bytes that are available for reading from the input stream?
- read()
- available()
- close()
- None of these
Which of the following methods is used in Java to execute a SQL statement that may return multiple results?
- executeQuery()
- execute()
- executeUpdate()
- None of these
Which of the following declarations of TextArea() method creates a text area of rows specified and width to accommodate the specified character?
- TextArea()
- TextArea(String)
- TextArea(rows,character)
- None of these