Submitted by heartin on Wed, 10/23/2013 - 08:52
The “this keyword” in Java refer to the the current object (current instance). All your instance variables may be referred as 'this.variableName' even though it is implicit in most cases.
The “this keyword” is mostly useful in below cases:
Refer to instance variables of a class when a local variable has precedence over it.
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:
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:
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.