NEW
Font size
WorksheetsJava Basic - Core
Total questions: 20
Worksheet time: 9mins
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
javac
java
javadoc
java
Java was originally named:
Coffee
Oak
C#
Duke
Java programs ________________
are only compiled
are only compiled not interpreted
are only interpreted
are both compiled and interpreted
Main() method is not mandatory for a Java program
True
False
Which of the following personality is called as father of Java Programming language –
Bill Gates
Larry Page
Brendan Greene
James Gosling
Java was developed in which year
1992
1993
1994
1995
Java does not support.
Multiple Inheritance
Single Inheritance
Multilevel Inheritance
Hierarchical Inheritance
What is the correct way of creating object in Java?
ClassName object_name;
ClassName object_name = new ConstructorName( );
ClassName new = object_name ConstructorName( );
ClassName object_name = ConstructorName( );
An expression involving byte, int, and literal numbers is promoted to which of these?
Int
Long
Byte
Float
Which of these operators is used to allocate memory to array variable in Java?
malloc
alloc
new
new malloc
What should be expression1 evaluate to in using ternary operator as in this line?
expression1 ? expression2 : expression3
Floating point number
Integer
Boolean
None of the mentioned
What does super keyword points to?
Super Class
Immediate parent class
none
Child class
What is the latest version of Java SE?
16
1.6
18
1.8
Wrapper class data type have bigger memory allocation then their respective primitive data type counter parts.
True
False
Column size of a 2D array can be allocated separately!
True
False
Their is no super class of a class if it does not extends one.
True
False
Where was the name 'Java' taken from?
An Island name in Indonesia
A Coffee Species
A Country Name
Developers' Pets' name
Char data type is which type of data type?*
Numeric
Character type
Non-numeric
None of the above
