Monthly Archive: December 2018

Read/Write File In Java (java.io)

In Java, files can be processed by either streams or buffers. java.io Library – helps in file processing by streams, where this is a classic one.java.nio Library – helps in file processing...

Streams

1.Overview Streams are introduced in Java in Stream API to handle the operations on the list of elements in functional programming approach. Using Streams we can do multiple operations on the list...

Spring Boot Rest Service [Get/Post]

Spring Boot Application is a stand-alone solution of a normal Spring Web Application. It comes with pre-configured conventions of the spring settings. It is very easy for a developer to create a...

Polymorphism

1. Overview Polymorphism refers to different behavior of an object for same method name in Object Oriented Programming. Every child class can have different unique behavior for the method it extends from...

Abstraction

Abstraction is a concept in Object oriented programming where only required behavior and property will be shown/visible to the user/application. In Java, data abstraction can be done in Java using abstract class...

Inheritance what?&why?

Inheritance is an important feature where a class can be extended and reused by another class. A inherited class can be called as subclass or childclass. The class which is inherited is...

String vs StringBuffer

String is a final class hence cannot be extended by any class. Any class which cannot be extended can also be called as immutable class. StringBuffer is a class which can be...

Classes & Objects

Java is a object Oriented Programming language. Programming deals with defining objects states and behaviors. In Java, Objects are logical representation of a real world objects or a conceptual thing. Class is...

Zip/UnZip Multiple Files In Java

For Zipping a file in Java, we have to Get the File Stream or Byte Stream Initialize a ZipOutputStream. Create a ZipEntry for each files or byte arrays and add it in...

CountdownLatch

CountDownLatch is another concurrency class, in which makes one thread wait for other until it reaches the threshold limit mentioned.Reach for the threshold limit, is counted by calling countdown() method present in...