Chapter 2
Java and C#
IN THIS CHAPTER
Understanding the C#/Java program structure
Declaring variables and using operators
Knowing how to use comments
Using variables and operators
Working with branching and looping statements
Creating functions and data structures
Working with objects
The Java language was meant to build upon the success of C++, but with added safety features and true cross-platform capabilities. Unlike C++, which gives programmers access to every part of the computer (along with the equal capability of screwing up every part of the computer), Java restricts access to the computer hardware. Although this limits Java’s flexibility, it provides greater stability and reliability of Java programs.
The most appealing feature of Java is its cross-platform capabilities. Although ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access