Blog Archives
1 … 9 10 11 12 13 14

Transaction management in SQL — Sybase example

Q. How do you perform transaction management in SQL stored procedures?
A. Handled with begin, commit, and rollback ‘tran’ commands in Sybase server.

Q. Why is it important?

…

Read more ›



Unix – combining two or more files & output only a subset of columns

Unix is a very powerful tool to automate monotonous & manual tasks. Here is a real-life example for data engineers & software engineers. If you are not familiar with Shell scripting the code may look complex, but if you dissect as shown below it becomes easier.

What does the below Unix code do?

…

Read more ›



Unix – Convert csv to psv without removing commas within quotes

Unix is a very powerful tool to automate monotonous & manual tasks. Here is a real-life example for data engineers & software engineers. If you are not familiar with Shell scripting the code may look complex, but if you dissect as shown below it becomes easier.

Problem statement: Given the below sample input file where there can be a “,”

…

Read more ›



Unix – Working with SQL files

Q01 How will you go about to list all the table names used in a number of sql scripts for a given database say MY_DB_1?
A01 Let’s say you have a number of sample sql scripts like

test.sql:

test2.sql:

Output_table_names_used_in_scripts.sh

Output.txt

Q02 How will you go about replacing the database name MY_DB_1 in the *.sql above to use MY_NEW_DEV_DB ?

…

Read more ›



Unix history commands for Java developer productivity

When you are using Linux/Unix command line frequently, using the history effectively can be a major productivity boost. You can accomplish things with less typing. For example, you will be typing lots of commands like

and so on. There are 6 ways to repeat your previous commands quickly without having to type a lot.

…

Read more ›



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 sed & awk commands in action

This extends sed and awk to write shell scripts for Java developers. sed & awk are very powerful tool for data engineers to transform text files. Here are a few examples. Q2 Can you explain the following Unix command?

A2 The “date” prints the date and time. … Read...

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


What does this Unix code snippet do?

Data Engineers & Java Developers must have a good handle on Unix. Most production systems are Linux based with 1000’s of scripts.

date

Q01. What does the below Unix code do?

A1.The above code echoes previous month’s end date.

…

Read more ›



XML Processing Interview Q&A

Q1. What libraries can you use in Java to process XML documents? A1. #1. DOM Parser loads the whole XML structure into memory, and you can read and write. This is useful for smaller XML documents which don’t impact memory usage. … 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


XSD reuse interview questions and answers

#1. Reuse by defining a “ComplexType”. EmployeeType is reused.

Once JAXB annotated classes are created

XML output:

#2. Inheritance reuse where sub types can define additional elements like “salary”, … 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 ›



1 … 9 10 11 12 13 14

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data