Java 9 Features

Here are all the Java 9 features that will be making to the release in July 2017. Process API Updates HTTP/2 Client (Incubator) Improve Contended Locking Unified JVM Logging Compiler Control Variable Handles Segmented Code Cache Smart Java Compilation, Phase Two The Modular JDK Modular Source Code Elide Deprecation Warnings on Import Statements Resolve Lint … Read more

Setting MAVEN_OPTS in Linux

If you want to set the MAVEN_OPTS in Linux permanently, you can do it like below Add below line to ~/.profile

They you need to logout and login again.

Convert a string representing a duration, ie: 300ms, 20s, etc to to nanoseconds

Suppose you have a string in your application that has the duration of time using ns, us ms , s h, d. And you want to convert them all to nano seconds, then utility will of great help to you.

Longest Palindromic Subsequence – Leetcode Java

Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000. Example 1: Input:


One possible longest palindromic subsequence is “bbbb”. Example 2: Input:


One possible longest palindromic subsequence is “bb”. Java Solution

  You can … Read more

License Key Formatting Leetcode – Java

Now you are given a string S, which represents a software license key which we would like to format. The string S is composed of alphanumerical characters and dashes. The dashes split the alphanumerical characters within the string into groups. (i.e. if there are M dashes, the string is split into M+1 groups). The dashes … Read more

Frontend interview questions

Questions you may get asked: 10 Interview Questions Every JavaScript Developer Should Know Front-End Job Interview Questions Front End Web Development Quiz Interview Questions for Front-End-Developer JavaScript Web Quiz Questions you ask: An open source list of developer questions to ask prospective employers Preparing: Preparing for a Front-End Web Development Interview in 2017 Interview Cake  — … Read more