MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
What is the output of this program?Note : packages..
1.
What is the output of this program?Note : packages.class file is in directory pkg;
A.
0
B.
1
C.
2
D.
0 1 2
Answer» D. 0 1 2
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