Chapter 01 (Head First Java)

What will you do in Java?

Code structure in Java

Anatomy of a Class

The JVM searches for the class you specify on the command line when it first starts up. Therefore, the main method of your class must be public, static, and void. The JVM instance will then use this method to run. from there onwards and you can drive your program through this method.. A minimum of one class and one main method must be present in every Java program.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store