Blog Archives
1 … 13 14 15 16 17 18

Top 6 Java 8 features you can start using now

Unlike Java 7, Java 8 has some significant changes. You can get familiarised with the the following simple working code. All you need is Java 8 installed on your machine.

#1: Interface can have static and default methods. This tries to solve the diamond (aka multiple inheriance) issue.

…

Read more ›



Top 6 Spring wiring via JavaConfig [i.e. @Configuration ] examples

Spring Java Configuration (i.e. JavaConfig) provides a pure-Java means of configuring the Spring IoC container. This is gaining popularity as it

  • gives complete control over instantiation and dependency injection.
  • gives type safety & compile-time check
  • supports refactorable configuration & supported by IDEs

Here are some industrial strength wiring examples.

…

Read more ›



Understanding Java 8 Streams and working with collections using Lambda expressions

A stream is an infinite sequence of consumable elements (i.e a data structure) for the consumption of an operation or iteration. Any Collection can be exposed as a stream. The operations you perform on a stream can either be intermediate (map, filter, sorted, … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Unix remoting interview Q&A for Java developers

Q1 How will you delete files that are older than 7 days in a remote unix server?
A1 By ssh ing to the remote host server

Q2 How will you copy files from a remote server to a local server?

…

Read more ›



Unix script to archive files for auditing

Q1. How will you move files that are older than X (e.g 7) days to their own archive folders to be zipped later on? A1.

you run it like

The files will be archived under “/etc/archive/{date}” … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Unix Sed commands for Java developers

sed (stream editor) is one of the powerful workhorse commands in UNIX. Recently I had to use it with “Git” and “Maven” to find text “SNAPSHOT” in all pom.xml files, and manually update them with a realease version like 1.0.2 without the suffix “SNAPSHOT”.

…

Read more ›



Unix shell script to upload & download data between HDFS and edge node

In BigData projects relating to HDFS or AWS S3, it is common to have scripts that transfer or download data from HDFS to the local file system on an edge or gateway node with CLI commands like HDFS, AWS, etc. You also need to upload files from a local file...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Unix tutorial with MobaXterm

Many industrial Java applications are developed om a WIN32 platfor, but run on a target platform, which is Unix based. If you are a beginner to Unix, and would like to work on an emulator that runs on a Win32 platform, this post is for you. MobaXterm is a set of Unix commands (GNU/Cygwin) included in a single portable exe file.

…

Read more ›



XML Parsing with JAXB implementation called MOXy

Step 1:Create a new Java project via Maven as shown below, and import the project into eclipse IDE.

Step 2: The pom.xml file with the MOXy dependency.

Step 3: Create a new “Source Folder” … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


XML processing in Java overview with a Stax reader example

Q. What APIs do Java provide to process XML? What are the pros and cons of each, and when to use what? A.  SAX: Pros: Memory efficient and faster than the DOM parser. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


YAML with Java using the SnakeYaml library tutorial

Step 1: Add “snakeyaml” to maven pom.xml as a dependency

Step 2: Define a YAML file under src/main/resources. For example, “logging.yml”

Step 3: Create a LoggingConfiguration Java POJO class.

Step 4: Finally,

…

Read more ›



Yammer metrics tutorial with JMX to gather metrics

Note: Yammer metrics has now moved to metrics-core.

from com.yammer.metrics:metrics-core:2.2.0 (NOT supported anymore) to com.codahale.metrics:metrics-core:3.0.*

from com.codahale.metrics:metrics-core:3.0.* to io.dropwizard.metrics:metrics-core:3.1.* since 2014.

When you are running long term applications like web applications, batch jobs,

…

Read more ›



⏯ Java high-level architecture & Integration Styles Interview Q&As Video

Links to Java Architecture Q&As

— Java/JEE integration styles interview questions and answers
— Java/JEE Architecture overview interview questions and answers

…

Read more ›



1 … 13 14 15 16 17 18

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data