O'Reilly logo

Technical Java™: Developing Scientific and Engineering Applications by Grant Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Moving from C to Java

If you are a C programmer moving to Java, there is good news. Java is a C-based language, so much of the basic syntax is the same—you still put semicolons at the end of statements, array indices still start at 0, and so on. Every Java program will have a main() method that serves as the starting point of the program just as in C. Some of the built-in library functions share the same names in Java and C.

While Java and C share a number of similarities, there are new concepts to learn when moving to Java. The primary shift from C to Java is that you will have to learn how to think in an object-oriented sense. A C program is a collection of functions. A Java program is a collection of classes. A class is a block of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required