Prev | Current Page 176 | Next

Carl Reynolds and Paul Tymann

"Schaum's Outline of Principles of Computer Science"


To write programs in Java, you can use any editor or word processor you like. There are also several
integrated development environments (IDEs) available. At first we recommend you simply use an editor with
which you are already comfortable, for the IDEs have a learning curve of their own for you to deal with, and
our focus here will be on the basics of the language.
JAVA TYPES
Every programming language defines a set of data types that it recognizes. In the case of early FORTRAN,
the language only recognized integers and floating-point numbers. More modern languages recognize a wider
range of data types, such as numbers of different levels of precision, true-or-false values, and strings of alphanumeric
characters. Most modern languages also allow the programmer to define new types of data.
Java is an object-oriented language, which means that the Java language operates on software objects. The idea
of a software object is a modern idea, and object orientation means that the programmer can define a new type of
data element by defining a new class. Having defined a new class (e.g., automobile), the programmer can create
an example object of the class (called an instance of a class; e.g., a Ford Mustang with a particular vehicle ID) and
manipulate it as a unique object.


Pages:
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
Rowy noclegi męskie skarpetki rowerowe wycieczki do Skandynawii pity mapa Niemiec