MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
Can you compile a Java file kept inside a directo..
1.
Can you compile a Java file kept inside a directory without mentioning the package name?
A.
Yes
B.
No
C.
-
D.
-
Answer» B. No
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of the below Java program with packages?
What are the uses of a Java Package?
Accessing the variables, constants, or methods of a class, imported from a package is subjective to access modifiers like PUBLIC, PRIVATE, PROTECTED and default. State TRUE or FALSE.
Choose a correct statement about using the classes or interfaces or abstract classes inside the packages in our Java program.
Which is the symbol used to separate a super-package and a sub-package at the time of declaring or importing in a Java program?
Choose a correct way of importing all the classes in the below java program with packages.
What are the popular Classes or Interfaces inside a Java Language Pack (java.lang)?
Which is the default Java package that will be auto included (imported) in the classpath while Compiling and Running a Java program?
How does JAVAC or JAVA (JVM) find the packages that will be used inside classes by an import statement?
You can place a comment before the Package Declaration statement in Java. State TRUE or FALSE.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply