lunibha-java.blogspot.com
Fast Track to Java: Arrays and Strings
http://lunibha-java.blogspot.com/2011/07/arrays-and-strings_12.html
Fast Track to Java. This declares that x is an array of char variables. Allocating the array decides the numbers of elements. X = new char [5] ;. If you remember "x" is a reference, the syntax above is more understandable. When you allocate an array, the elements are automatically initialized. Numeric primitives are zeroed,. Char primitives are made spaces,. Boolean primitives are made false. For an array of any other type the "references" are made null. X [0] = 'z' ;. X [1]= 'q' ;. Char x; or char ;.
lunibha-java.blogspot.com
Fast Track to Java: Java Application
http://lunibha-java.blogspot.com/2011/07/java-application_12.html
Fast Track to Java. Let us start our introduction to Java with a basic application. It looks like this:. Public static void main (string args ). System.out.printin ( "Fast-Trak to Java! End of main . End of class we1come1. This makes no sense, right? Note: An identifier cannot begin with a digit. 11 Building an application. We will start by building an application that adds two numbers. Whenever you build any Java Application, there is a set template for design that you automatically follow. End of main .
lunibha-java.blogspot.com
Fast Track to Java: Multithreading
http://lunibha-java.blogspot.com/2011/07/multithreading.html
Fast Track to Java. It is the basic unit of program execution. A process can have several threads running concurrently, each performing a different job. When a thread has finished its job, it is suspended or destroyed. Depending on the OS, one of either two strategic is used:. 8226; preemption or. 8226; time slicing:. Under Sun's Solaris operating system, a thread of a certain priority is allowed to run until it is finished, or until a thread of higher priority becomes ready to run. Every instantiated th...
lunibha-java.blogspot.com
Fast Track to Java: Files and Streams
http://lunibha-java.blogspot.com/2011/07/files-and-streams_12.html
Fast Track to Java. Before you can read from a file, you must open it. After you are done reading from a file, you must close it. There are two common varieties of reading. Reading characters ( a Character is 16 bites long ). Reading bytes (a byte is 8 bits long). Inevitably, when you sit down to read from a file, you have a sort through the choices on those lists. The best approach is to pick one from either list……. Character and byte—and learn to use it . 71 Reading Characters from a File. Boolean keep...
lunibha-java.blogspot.com
Fast Track to Java: Methods
http://lunibha-java.blogspot.com/2011/07/methods_12.html
Fast Track to Java. A Method is invoked by a method call. The syntax is as follows:. Object. method (argument):. Usually. we start with an instance of a object. The object hands the method some information (arguments) and asks that method to perform a task based on that information. When the task is done, the method returns information back to the object that called it. Return = object.method (arguments);. Teacher.askasStudent (help);. Impot java.awt.containere;. Import javax.swing.*;. Public void init .
lunibha-java.blogspot.com
Fast Track to Java: Operators and Control Structures
http://lunibha-java.blogspot.com/2011/07/operators-and-control-structures_12.html
Fast Track to Java. Operators and Control Structures. The following code assigns the value 15 to the variable x. In Java, a single equal's sign is the assignment operator. Consider we append the statement with. The new value of x will now be 20. First, the addition on the right is done. Then, the result is assigned to the variable on the left. In Java, you can also use the following shortcut to arrive at the same value:. Int x= 15;. 22 Increment/ Decrement operators. Int x= 0;. System. exit (0) ;. After ...
lunibha-java.blogspot.com
Fast Track to Java: Object Oriented Programming (oop)
http://lunibha-java.blogspot.com/2011/07/object-oriented-programming-oop_12.html
Fast Track to Java. Object Oriented Programming (oop). Although we write the programs in a general way, the objects themselves cause the behavior to be specific. This lets us write programs that will work correctly even for objects that haven't been invented yet. We have already been using the terms Superclass and Subclass. A superclass is the parent class while a Subclass is the child class. A subclass inherits the behavior and variables of its Direct superclass. We use the new keyword to fire off the S...
lunibha-java.blogspot.com
Fast Track to Java: Home
http://lunibha-java.blogspot.com/2011/07/home_12.html
Fast Track to Java. Operators and Control Structures. Object Oriented Programming (oop). Operators and Control Structures. Object Oriented Programming (oop). Fast Track Java Tutorial. Avtar of hindu God. Top 10 World Records Updates. Template images by Ollustrator.
lunibha-java.blogspot.com
Fast Track to Java: Objects and Classes
http://lunibha-java.blogspot.com/2011/07/objects-and-classes_12.html
Fast Track to Java. A program is composed of generic objects, with certain standard properties, and certain standard operations the objects can perform. In object oriented programming (OOP), you only care about what the objects expose. You won't be able to determine how someone else's object functions. In fact, the public method (interface) is more important. The term class is the blueprint or recipe from which the object is actually made, or "instantiated.". Boop = new MyClass ;. Let's instantiate Hour...