development n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Development PowerPoint Presentation
Download Presentation
Development

Loading in 2 Seconds...

play fullscreen
1 / 9

Development - PowerPoint PPT Presentation


  • 57 Views
  • Uploaded on

Development. Using Javac & java command. Compiling with javac. javac [ option ] [ source files]:. Compiling with -d. Launching Apps with Java. Searching for Other Classes. Declaring and Using Classpaths : - classpath /com/foo/acct:/com/foo

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Development' - xanti


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
compiling with javac
Compiling with javac
  • javac [option] [source files]:
searching for other classes
Searching for Other Classes
  • Declaring and Using Classpaths:

-classpath /com/foo/acct:/com/foo

=> means specify 2 directories where classes can be found

-classpath /com/foo/acct:/com/foo:.

    • Search 2 directories and search current directory

* Use “-cp” to abbreviate “-classpath”

using static imports
Using Static Imports

Before static imports:

public class TestStatic {

public static void main(String[] args) {

System.out.println(Integer.MAX_VALUE);

System.out.println(Integer.toHexString(42));

}

}

After static imports:

import static java.lang.System.out; // 1

import static java.lang.Integer.*; // 2

public class TestStaticImport {

public static void main(String[] args) {

out.println(MAX_VALUE); // 3

out.println(toHexString(42)); // 4

}

}