Pages

Monday, 12 August 2019

Use of modifiers

Basic use of modifiers: Access Modifiers(public,protected,default[package access],private) Comparison between access modifiers Visibility private default protected public 1.Within the same class Yes Yes Yes Yes 2.From child class of the same package No Yes Yes Yes 3.From the non-child class of the same...

Read More

Saturday, 10 August 2019

Garbage collection

Agenda: Introduction The way to make an object eligible for Garbage Collection The methods for requesting JVM  to run Garbage Collection Finalization Memory Leaks Introduction: Garbage Collection: It is a process of collecting unused objects from the memory(heap). And the actor who...

Read More

Friday, 9 August 2019

Arrays

Arrays

Agenda: Introduction Array declaration Array construction Array initialization Array declaration construction initialization in a single line. length vs length()  Anonymous arrays Array element assignments Array variable assignments Introduction: An array is a collection of homogeneous elements. It can represent multiple values with...

Read More

Thursday, 8 August 2019

Control flow

Control flow

Agenda: Selection statements Iterative statements Transfer statements Selection statements: if-else switch if-else: Syntax:  if(b){// here b is boolean type // action if b is true. }else{ action if b is false. } The argument of the if statement must be boolean type...

Read More

Wednesday, 7 August 2019

Operators

Operators

Agenda: Increment and Decrement operators Arithmetic operators String concatenation operator Relational operators Equality operator "instanceof" operator Bitwise operator Short circuit operators Typecast operator Assignment operator Ternary operator  New operator [] operator Increment & Decrement operators: Pre increment  E.g.:  y = ++x; Pre...

Read More
Page 1 of 5123»