Category: Java

0

Convert String to int in Java

Some times we need to convert String to int in Java. This is fairly easy using Integer class. This can be achieved by two methods: 1. Using Integer.parseInt() Using parseInt()...

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 Lets kick...

lambdaa 3

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....

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.   Example: Input String :...

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...

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...

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....

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...

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....