Submitted by heartin on Tue, 10/22/2013 - 11:30
Java is a programming language that follows the Object-Oriented Programming (OOP) principles. OOP model focusses on realworld objects to model applications. A real world object will have some properties and some behaviour. For example, human object will have properties like height, weight etc. and behaviours like walk, run, talk, etc.
Submitted by heartin on Sun, 10/20/2013 - 21:31
Looping constructs in Java are:
-
For statement
-
For-each statement
-
While statement
-
Do while statement
We will see for and for-each here. We will see while, do while, break and continue statements in next note.
The for statement
Syntax of for loop is:
Submitted by heartin on Mon, 09/30/2013 - 10:05
Decision control statements can change the execution flow of a program.
Decision control statements in Java are:
-
if statement
-
Conditional operator
-
switch statement
Submitted by heartin on Mon, 09/30/2013 - 01:06
Literals are numbers, characters, and string representations in your program. Literals can be classified as numeric literals, character literals and string literals.
Submitted by heartin on Sat, 01/19/2013 - 20:25
In this article, we start by discussing the difference between multithreading and multitasking (or difference between threads and processes), then discussing the thread states, different ways of creating threads and a simple thread example to make things clear. We will also learn what are deamon threads.
Pages