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 ...
Get Beginning Programming All-in-One For Dummies, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.