System properties: Question about this concept - Sun Certified Java Programmer 310-065 - Lesson 46 | Java courses
In this video we will wrap up our discussion on Java Development. We will tackle questions that discuss packages, jar files and classpath(s).
"
download the application please visit www.mrbool.com/player
Title: System
properties: Question about this concept - Sun Certified
Java Programmer 310-065 - Lesson 46
Duration: 18 minutes
Summary:
In this video we will wrap up our discussion on Java Development. We will
tackle questions that discuss packages, jar files and classpath(s). First, we
will start with system properties. System properties can be specified at the
command line and programmatically. However, a property specified
programmatically will take precedence over the value specified at the command
line. We will see a question that covers this concept. Next, we will talk more
about creating jar files and how we can reference them with the classpath. We
will be given a directory structure that contains java files and jar files. We
need to choose the correct command line option that references the jar file.
Methodology
of the development of example: Good coding standard and
simplified design to prepare for the Java programmer certification exam
CX-310-065.
Technology
Used: Java - Core Concepts
Keywords:
class, object, classpath, package, jar files, import, static, System
properties.
Add a comment!
[Fechar]
Este post é fechado - você precisa ter acesso ao post para incluir um comentário.
Matthew Casperson
4/20/2012 1:42am
More information
It is worth noting for question 8 that when building a String with null references, those references are printed as the string "null".
Answer it
Matthew Casperson
4/20/2012 2:7am
Question 11 is wrong
In the video it is suggested that you can not use the -classpath option with the java command. This is incorrect. The -classpath option is clearly listed in the available options for the java command at http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/java.html#options.
The correct answer for question 11 is actually C, with some conditions:
- The GetJar class imports myApp.Foo (or myApp.*)
- The system class path lists the current directory (.)
Without the import statement, the class GetJar is not valid Java. Without the current directory being on the system classpath, you would need to run the following command:
/usr/java/latest/bin/java -classpath MyJar.jar:. GetJar
Answer it
Mr.Bool Editor
4/24/2012 1:30pm
RE:
We have forwarded your comment to the author.
Soon, he will contact.
Answer it
Ayad
4/25/2012 7:26am
RE:
Thank you for the feedback Matthew.
Answer it
Help us to improve! Give us your feedback: