WorksheetsJava
Total questions: 10
Worksheet time: 5mins
which one this keywords are used to create a class in java
class
struct
int
none of the avove
which one of the following have elements in insertion order
sorted map
hashmap
linkedhashmap
treemap
which of the following is wrapper class in java
Float
Integer
Double
all of above
Java was originally named:
Coffee
Oak
New C++
Duke
When was Java released?
1975
1985
1995
2005
2015
Who invented Java?
James Gosling
Sergey Brin
Steve Jobs
Bill Gates
Tim Berners-Lee
What was Java originally designed for?
Interactive TV
Internet
Gaming
Cars
Which company owns Java?
Oracle
Microsoft
Apple
Intel
int [] nums = {2, 3, 5, 8, 9, 11};
How would you access the fourth element in nums?
nums[4]
nums[3]
nums(4)
nums(3)
which one of the following is true?
runnable interface declares the start method
Thread.start() method is used to move a thread from a new state to the runnable state
Thread.runnable() method is used to move a thread from new state to the runnable state
Thread.run() method is used to move a thread from new state to the runnable state
