Java
Is the abs ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Is the absence of a package declaration in the source code acceptable?
Yes, it is
No, it`s not
Explanation
Package statement is optional. For small programs it's common to omit it, in which case Java uses empty package that is called a default package.
keywords
packages
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
Is it possible to use abstract and final modifiers during a class declaration at...
What will happen as the result of the following code compilation? ...
Given the following class: public class Main { publ...
Select all modifiers that are applicable to top-level classes (not nested)....
Which line will the first compilation error occur in? p...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment