WorksheetsJava Basics
Total questions: 27
Worksheet time: 9mins
What is the keyword "final" used for in Java?
identify a constant
identify an integer
identify a string
Identify a final answer
The keyword "method" is another name for
an object
a class
a function
a variable
Java was originally named:
Coffee
Oak
New C++
Duke
Which of the following is NOT a numeric data type
int
double
float
decimal
Where does a java program start executing instructions from:
class
source file
main method
object
Which of the following is an example of a reference variable declaration?
int count;
String name;
float gpa;
char firstInitial;
What is the main difference between float and double data types?
4.1 is an example of float.
4.11 is an example of double.
Float consists of 8 bytes, and double consists of 4 bytes.
Float consists of 4 bytes, and double consists of 8 bytes.
What kind of data type is used for numbers?
Integer
String
Boolean
Floating Point
What is a blueprint and determines how an object will behave?
Object
Method
Attribute
Class
To make a particular type of data useful, you need to have properties and methods included in a self-contained component. This component also has a memory location allocated. What is it?
Class
Method
Value
Object
Java program is
Interpreted
Compiled
A ___________ file is created after successful compilation of a Java program.
Object file
Array file
Class file
String file
Command to compile Java program
javax
javay
javac
Java
Command to run a Java program
javaa
java
jaava
jaavaa
JDK stands for
Java Developer Kit
Java Development Kit
Java Design Kit
Java Debugging Kit
JRE stands for
Java Run Environment
Java Run Execution
Java Runtime Environment
Java Ready Execution
In Java WORA stands for
Write Once Recall Anywhere
Write Once Return Anywhere
Write Once Read Anywhere
Write Once Run Anywhere
JVM stands for
Java Vital Machine
Java Virtual Machine
Java Vendor machine
Java Programming was designed by ______
Sun MicroSystems
Mozilla Corporation
Microsoft
Amazon Inc.
Which of the following personality is called as father of Java Programming language –
Guido vom Russom
Larry Page
Bjarne Stroustrup
James Gosling
Which of the following is not OOPS concept in Java?
Inheritance
Encapsulation
Polymorphism
Compilation
Which concept of Java is a way of converting real world objects in terms of class?
Polymorphism
Encapsulation
Abstraction
Inheritance
