Chapter 2

Java and C#

IN THIS CHAPTER

Bullet Understanding the C#/Java program structure

Bullet Declaring variables and using operators

Bullet Knowing how to use comments

Bullet Using variables and operators

Bullet Working with branching and looping statements

Bullet Creating functions and data structures

Bullet 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.