× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
d
4
N
3
3
R
3
k
3
o
3
Z
3
j
3
s
3
d
3
J
3
1
3
New Topic  
DePeet DePeet
wrote...
Posts: 338
Rep: 0 0
6 years ago
Assume you write a program that uses the Random class but you fail to include an import statement for java.util.Random or java.util.*. What will happen when you attempt to compile and run your program?
a.   The program won't run but it will compile with a warning about missing the class.
b.   The program won't compile and you'll receive a syntax error about the missing class.
c.   The program will compile but you'll receive a warning about the missing class.
d.   The program will encounter a run-time error when it attempts to access any member of the Random class.
e.   none of these
Read 59 times
1 Reply
Replies
Answer verified by a subject expert
StingerStinger
wrote...
Posts: 310
Rep: 4 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
1

Related Topics

DePeet Author
wrote...

6 years ago
Correct Slight Smile TY
wrote...

Yesterday
Brilliant
wrote...

2 hours ago
Thanks for your help!!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1672 People Browsing
Related Images
  
 313
  
 385
  
 295
Your Opinion
Who will win the 2024 president election?
Votes: 119
Closes: November 4