Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Java Quick Syntax Reference
Java Quick Syntax Reference
Java Quick Syntax Reference
Ebook128 pages56 minutes

Java Quick Syntax Reference

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Quickly gain the insight necessary to address a multitude of Java coding challenges using this succinct reference guide. Short, focused code examples will help you master Java elements such as modules, boxing/unboxing and more.

You won’t find any technical jargon, bloated samples, drawn out history lessons or witty stories in this book. What you will find is a language reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any Java programmer.

What You Will Learn

  • Code with Java modules
  • Box/unbox 
  • Utilize exception handling
Who This Book Is For

Those with prior experience with Java who want a quick and handy reference. 
LanguageEnglish
PublisherApress
Release dateJan 25, 2018
ISBN9781484234419
Java Quick Syntax Reference
Author

Mikael Olsson

Mikael Olsson is a professional programmer, author and web entrepreneur. He enjoys teaching, writing books and making sites that summarize various fields of interest. The books he writes are focused on teaching their subject in the most efficient way possible, by explaining only what is relevant and practical without any unnecessary repetition or theory. He can be reached online at Siforia.com.

Read more from Mikael Olsson

Related to Java Quick Syntax Reference

Related ebooks

Programming For You

View More

Related articles

Reviews for Java Quick Syntax Reference

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Java Quick Syntax Reference - Mikael Olsson

    © Mikael Olsson 2018

    Mikael OlssonJava Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-3441-9_1

    1. Hello World

    Mikael Olsson¹ 

    (1)

    Hammarland, Länsi-Suomi, Finland

    Installing

    Before you can program in Java you need to download and install a Java Development Kit (JDK) , such as the Standard Edition (JDK SE) from Oracle’s website.¹ Among other things, the JDK includes the Java compiler, the class libraries, and the virtual machine needed to run Java applications. Oracle’s download page also has a link to obtain Netbeans² bundled with a JDK. Netbeans is an Integrated Development Environment (IDE) that will make development in Java much easier. Alternatively, another free IDE you can use is Eclipse.³ If you don’t want to use any IDE at all, a regular text editor will work just fine.

    Creating a project

    If you decide to use an IDE (recommended), you need to create a project, which will manage the Java source files and other resources. If you prefer not to use an IDE, you can create an empty file with the .java extension—for example, MyApp.java—and open it in your text editor of choice.

    To create a project in Netbeans, click File ➤ New Project. In the dialog box select the Java Application project type under the Java category and click Next. In this dialog box set the project name to MyProject and the name of the main class to myproject.MyApp. Change the project’s location if you want and click Finish to generate the project. The project’s only file, MyApp.java, will then open up, containing some default code. You can go ahead and remove all of that code so that you start with an empty source

    Enjoying the preview?
    Page 1 of 1