Submitted by heartin on Tue, 04/22/2014 - 23:19
Gradle lifecycle
Gradle lifecycle consist of three phases: initialization, configuration, and execution:
-
During Initialization, Gradle decides which projects are to participate in the build.
-
During Configuration, task objects are assembled into an internal object model, usually called the DAG (for directed acyclic graph).
Submitted by heartin on Fri, 02/28/2014 - 23:03
Let us do a simple hands on excercise followed by some questions to understand exceptions better. For theory and concetps of exceptions in Java. you can refer to the note introduction-to-exceptions-in-java.
Exercise
Create a class MyClass and create three methods myMethod1(), Method2() and Method3().
Invoke Method2() from Method1() and Method3() from Method2().
Submitted by heartin on Fri, 02/14/2014 - 07:52
A String is a sequence of characters (e.g. "Hello World").
A String is an object in java, and not a primitive.
Creating Strings
We can create a String object in two ways:
-
Assigning a String literal to a String variable
Submitted by heartin on Tue, 10/29/2013 - 09:29
Access modifiers are used to specify the accessibility or access levels of a type (class, interface) and its members (methods, variables and even constructors). There are three access modifiers and four access levels in Java. The three access modifiers are are private, protected and public. Four access levels (from most restricted to least restricted) are private, default (no modifier), protected and public.
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:
Pages