Java Beginners / Java For Beginners
2007-08-22 Writing a Hello World! program is the traditional first step taken when learning a new language. It allows you to take the new language and its development tools through a test-drive, stepping through the complete install, edit, compile, and run c ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-08-22 The class path can be set using either the -classpath option when calling an SDK tool (the preferred method) or by setting the CLASSPATH environment variable. The -classpath option is preferred because yo ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-08-22 There are two types of files you will work with in Java. The Java source file (.java) is created by programmers and contains human-readable instructions. The second file is the Java classfile (.class). The Java classfile contains binary instructi ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-08-22 What is Type ? A type is a category or grouping that describes a piece of data. Every data in java can be identified by its type. Data of the same type share common characteristics. If a datum is of type int, for example, then the programmer kno ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-08-22 Document Source Code with Comments . Comment operators are used to add notes and documentation to source
code. Everything marked as comments is ignored by the compiler.
Comments can appear anywhere in a Java source file except within
character ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-10-31 Now that you've learned how to declare and initialize variables, you probably want to know how to do something with them. Learning the operators of the Java programming language is a good place to start. Operators are special symb ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-10-31 Java fundamentally is an object-oriented language; all Java code centers around defining the attributes and behaviors of objects. Within methods and static initializers, program logic is constructed using time-honored structured programming techn ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-10-31 As we saw in Java Variables, you can store program data in variables. Each variable has an identifier, a type, and a scope. When you have closely related data of the same type and scope, it is often convenient to store it together in a ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-10-31 As we saw in Repetition with while and do-while there are three looping constructs in java ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-14 As we saw in ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-14 Crunching numbers is a central task for many programs. In fact, the desire to automate number operations was the motivation that drove the invention of digital computers decades ago. In this tutorial we will learn how to work with numbers in Java, ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-14 As we saw in Introduction to Objects , a class can define both attributes and behaviors. Attributes are represented by instance variables; behaviors are defined by methods. Without methods, an object cannot do anything. It can only passively wait for ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 Many applications in diverse domain areas, such as games, cryptography, or simulations, require a way to randomize events. For instance, the flip of a coin, the pull of a slot machine's handle, or the price change of a stock index. In this tutor ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 Manipulating text is a common computer programming task. Several languages (perl, for instance) were purposely designed to include powerful text processing capabilities. Early Java versions were not designed with this in mind, so developers had to re ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 Variables are data identifiers. Variables are
used to refer to specific values that are generated in a
program--values that you want to keep around. Program data is often
easier to understand and manipulate if each datum has its own name.
Inst ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 While - As was introduced in Java Control Flow Statements,
Java has the ability to loop repeatedly until some terminating
condition is met. During each iteration of the loop, the same block of
statements is executed. When the terminating cond ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 A thread is a path of execution through code; in other words, a thread
is a single sequential flow of control within a program. What does that
mean? In Java, objects are not \"alive\", rather threads are \"alive\".
Threads run through your code (i ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 There are two types of files you will work with in Java. The Java
source file (.java) is created by programmers and contains
human-readable instructions. The second file is the Java classfile
(.class). The Java classfile contains binary instruc ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 The following is a learning tool designed to explain the basic use
of select classes from the java.io package, as well as classes used in
conjunction with input and output. The following classes will be
covered:
- System
- In
...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 Wrapper classes correspond to the primitive data types in the Java
language. These classes represent the primitive values as objects. All
the wrapper classes except Character have two constructors -- one that
takes the primitive value and anoth ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 In Java, this multiple inheritance problem is solved with a powerful
construct called interfaces. Interface can be used to define a generic
template and then one or more abstract classes to define partial
implementations of the interface. Inter ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 Abstract classes are used to declare common characteristics of
subclasses. An abstract class cannot be instantiated. It can only be
used as a superclass for other classes that extend the abstract class.
Abstract classes are declared with ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 In java one object reference can be cast into another object reference.
The cast can be to its own class type or to one of its subclass or
superclass types or interfaces. There are compile-time rules and
runtime rules for casting in java. The cast ...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 Up until the introduction of Jdk 1.1, the java language only supported top-level classes.
Top level classes are classes that are defined as members of a package.
But with Jdk 1.1, sun introduced the concept of nested/inner classes in
...Read
Arunkumar S,Beginners,
JavaOrigin.com 2007-11-15 The symbols shown in the figure above define interfaces. They can only be used as attribute definition, not as instantiation class names:
...Read
Arunkumar S,Intermediate,
JavaOrigin.com 2007-11-15 Exceptions are objects that describe any error caused by an
external resource not being available or an internal processing
problem. They are passed to exception handlers written by the
programmer to enable graceful recovery. If the ha ...Read
Arunkumar S,Beginners,
JavaOrigin.com
|