Java Programming Fundamentals
Test your knowledge of core Java programming concepts including applets, JVM, interfaces, servlets, and basic Java syntax.
Questions
What is the advantage of using import statements?
- To avoid having to declare variables.
- To refer to a class without using prefixes.
- To avoid calling methods.
- To import the images you want to use.
An applet will run in almost any browser because...
- The server has a built-in JVM.
- The browser has a built-in JVM.
- The source code is interpreted by the browser.
- Applets don''t need a JVM.
The BorderLayout class provides static fields for...
- Introducing new methods.
- Adding components to specific areas of a container.
- Starting an applet.
- Specifying font size and color.
Java runs on _______.
- Windows
- Unix/Linux
- Macs
- All of the Above
What is Java?
- A type of coffee
- An object-oriented programming language
- A Structured Programming language
- An interactive website
Which method will a web browser call first on a new applet?
- main method.
- start method.
- init method.
- run method
What is an Applet?
- An interactive website
- A Java program that is run through a web browser
- A type of computer
- Java method
A program written in the Java programming language can run on any platform because...
- Java programming is derived from C++.
- The compiler is identical to a C++ compiler.
- The APIs do all the work.
- The Java Virtual Machine(JVM) interprets the program for the native operating system.
Servlets are typically used for...
- Extending a web server by providing dynamic web content.
- Create a JVM for applets.
- Storing information in applets.
- Loading buttons and menus.
When a program class implements an interface, it must provide behavior for...
- Two methods defined in that interface.
- All methods defined in that interface.
- Only certain methods in an interface.
- Any methods in a class.
Servlets are typically used for...
- Create a JVM for applets.
- Extending a web server by providing dynamic web content.
- Storing information in applets.
- Loading buttons and menus.
When a program class implements an interface, it must provide behavior for...
- Two methods defined in that interface.
- Only certain methods in an interface.
- All methods defined in that interface.
- Any methods in a class.
A program written in the Java programming language can run on any platform because...
- Java programming is derived from C++.
- The Java Virtual Machine(JVM) interprets the program for the native operating system.
- The compiler is identical to a C++ compiler.
- The APIs do all the work.
An applet will run in almost any browser because...
- The server has a built-in JVM.
- The browser has a built-in JVM.
- The source code is interpreted by the browser.
- Applets don''t need a JVM.