Java 8: Streams – Part 1

What is Streams? Stream is a new abstract layer introduced in Java 8, It represents a sequence of objects from a source, which supports aggregate operations. To understand better, lets take basic sql function distinct. SELECT DISTINCT(USER_TYPE_ FROM [MYSCHEMA].[USER]; In the above SQL script, we perform Distinct operation using the

Read More

JAVA PROGRAM TO PRINT PATTERNS

JAVA PROGRAM TO PRINT PATTERNS

Interview Questions Refer this for preparing yourself on how to write java program to print patterns (Note: NOT Design Patterns) Start Pattern Number Pattern Star Pattern Number Pattern Just a Note There are N-ways of writing the above codes, please feel free to explore by playing around it.

Java My Way of learning

OOPs               Object oriented Programming Concepts Abstraction Encapsulation Polymorphism Inheritance Association Composition Aggregation Abstraction               Hiding the internal details and describing things in simple terms, there are many ways to achieve abstraction in OOPs, such as encapsulation and inheritance.               For Example: a method that adds two integers, the method

Read More