Category: Java

0

Installing Tomcat8 on Raspberry pi 3

In this tutorial we will be installing tomcat8 on Raspberry pi 3. I have already installed Raspbian on my pi3 which comes with java8 installed. Check Java Version You can check if java is...

lambdaa 1

Java8 Lambda expression tutorial

In this tutorial we will be looking at lambda expressions which are very popular now a days. Lambdas can reduce a lot of boilerplate code like anonymous object creation etc. This tutorial is created...

Word Break Problem Java : Given a string and set of dictionary words, determine if string can be segmented into a space-separated sequence of one or more dictionary words.

Given a string and set of dictionary words, determine if string can be segmented into a space-separated sequence of one or more dictionary words. Example: Input String : “ILOVEANDROIDSRC” Dictionary Words: {“A”, “AN”, “AND”, “DROID”,...

0

Producer Consumer Problem Java : Detailed Explaination

Producer Consumer Problem is well-known example of multi-process synchronization problem. It is described as synchronization problem over a fixed size data buffer implemented as queue being modified by two or more different processes referred...

1

Wrapper class in java

Java is an object-oriented language and can view everything as an object. A simple file can be treated as an object , an address of a system can be seen as an object ,...

WeakReference in Java 0

WeakReference in Java

WeakReference is related to garbage collection. Normally, object having one or more reference will not be eligible for garbage collection. Then above rule is not applicable when it is WeakReference. Weak references allow you...

0

OOPS Concepts: Association, Aggregation and Composition

With Object Oriented Programming, we aim for better and easy representation of real world objects. Above oops concepts define relationship between two objects.  These relationship define basic functionality which constitutes to OOPS. Association It defines...

0

LRU Cache : Java Implementation

LRU Cache (Page Replacement Scheme) LRU Cache is designed for finding the location of desired page on disk. It maintains a cache of page number and its location on disk. Whenever there is a...