Correct Answers | Latest Version (2024/2025)
Expert Verified
The..portion..of..code..where..all..java..code..execution..BEGINS..and..runs..is..called..w
hat?..-..Correct..Answer-The..Main..Method
Which..of..the..following..is..the..correct..way..to..declare..the..main..method..in..a..Jav
a..program?
-..public..static..main(String..args)
-..public..static..void..main(String[]..args)
-..public..void..main(String[]..args)
-..void..main(String..args)..-..Correct..Answer-public..static..void..main(String..[]..args)
Which..of..the..following..is..not..a..primitive..type..in..Java?
-..double
-..String
-..int..
-..float
-..Boolean..-..Correct..Answer-String
, What..is..the..primary..difference..between..dynamically..and..statically..typed..langu
ages?..-..Correct..Answer-
Dynamically..typed..languages..PERFORM..type..checking..at..runtime,..while..statica
lly..typed..languages..PERFORM..type..checking..at..compile..time
Reference..types..are..a..Java..variable..type..that..store..a..pointer..to..a..location..in..
memory...T/F?..-..Correct..Answer-True
Primitive..types..are..a..Java..variable..type..that..store..a..pointer..to..a..location..in..m
emory...T/F?..-..Correct..Answer-False
Which..of..the..following..is..not..a..type..of..loop..in..Java?
-..for..loop
-..while..loop
-..for-each..loop
-..until..loop
-..do-while..loop..-..Correct..Answer-until..loop
Which..of..the..following..lines..of..code..correctly..creates..an..ArrayList..of..integers..
withoutwarnings/errors?
-..ArrayList..myList..<int>..=..new..ArrayList<int>();
-..ArrayList..myList..=..new..ArrayList<Integer>();