Blog Archives

01: 12 Web basics every Java web developer must know

Q1. HTTP is a stateless protocol, so how do you maintain state? How do you store user data between requests?
A1. This is a commonly asked interview question. The “http protocol is a stateless request/response based protocol”. You can retain the state information between different page requests as follows:

HTTP Session.

Read more ›



02: 15 key considerations for low latency Java

Extends Writing low latency applications in Java interview Q&As. If the job description says “low latency” application, then be prepared. Even if “low latency” experience is not a requirement, all employers like candidates who can not only build systems that perform well, but also can stress test (e.g. … Read...

Members Only Content

Free Trial | Log In | Register | Home


04: 5 FAQs on transforming your thinking from OOP to FP

Functional programming is prevalent in data engineering (i.e. Spark programming, etc) roles. A must know for Big Data Engineers and Analysts.

One needs to get used to the transformation from imperative programming to functional programming. You like it or not, you will be using functional programming in Java,

Read more ›



04: Top 10 most common Core Java beginner mistakes

Mistake #1: Using floating point data types like float or double for monetary calculations. This can lead to rounding issues. In the above code, 2, 4, and 5 are correct and 1 and 3 are incorrect usage leading to rounding issues. … Read more ›...

Members Only Content

Free Trial | Log In | Register | Home


07: Q33 Top 5 OOP tips for Java developers

Tip #1: Tightly encapsulate your classes. A class generally contains data as well as methods, and is responsible for the integrity of its own data. The standard way to protect the data is to make it private, so that no other class can get direct access to it, … Read more...

Members Only Content

Free Trial | Log In | Register | Home


10 Core Java Best Practices with an industry strength code sample

Best Practices is one of the key areas, and often you can impress your interviewers, peers, and code reviewers by applying the best practices to your code. If you are an interviewer, you can show a piece of code that is badly written, and ask for the recommendations as to...

Members Only Content

Free Trial | Log In | Register | Home


17 Java Coding Tips for job interviews and pre-interview coding tests

Java coding questions are very common in job interviews. Good coding skills are essentials for passing the peer code reviews with flying colors. Here are 17 coding tips with Java examples.

Tip #1: If you are asked to write a function or code,

Read more ›



30+ SDLC activities you perform as a Java developer

Don’t get overwhelmed by this activities list. This proves why employers favor experience to just academic qualifications alone. It also emphasizes the fact why good technical skills must be complimented with good soft skills and right attitudes get things done as a software developer. I also vividly remember my first...

Members Only Content

Free Trial | Log In | Register | Home


5 tips that will put your Java contracting career on auto-pilot mode

If you are already working as a Java freelancer/contractor or aspiring to become one, here are 5 tips that will put your freelancing career as a programmer on auto-pilot mode. Feel free to share your experience and tips as a freelancer. If you aspire to become a freelancer/contractor then read 5 steps to become a Java freelancer

3 key benefits of contracting/freelancing

1) Better income,

Read more ›



Can you list 10 JEE best practices from your experience?

Core Java best practices and JEE best practices can reveal a lot about your experience as a Java developer.

Q1. Can you list 10 JEE best practices from your experience?
A1.

#1: Using datasources with JNDI lookups

DataSources make the code more portable than using the DriverManagers.

Read more ›



Java 7: Top 8 new features with examples

There are several small new features and enhancements in Java 7. The major features and enhancements are in Java 8. Let’s look at the Java 7 new features. #1: string in switch statement: Output is: #2 Binary integral literals Output: #3: Underscores for better readability in numeric literals Output: #4:...

Members Only Content

Free Trial | Log In | Register | Home


Q01-Q28: Top 50+ FAQ JEE interview Q&As

Java interview questions & answers on EE (i.e. Enterprise Edition) with lots of diagrams & code to quickly grasp the concepts for the beginner to advanced Java developers. It pays to brush-up before attending Java job interviews. Q1. Can you describe the high level architecture of the application that you...

Members Only Content

Free Trial | Log In | Register | Home


Q1-Q10: Top 50+ Core Java interview Q&As

These are must know Java interview FAQs. If you don’t get these Java interview questions right, you will not be getting an offer.

Q1. What is the difference between “==” and “equals(…)” in comparing Java String objects?
A1. When you use “==” (i.e.

Read more ›



Q11-Q23: Top 50+ Core Java Interview Q&As

The focus is on Java OOP interview questions and answers. Q11. What is the difference between constructors and other regular methods? A11. Constructors must have the same name as the class name and cannot return a value. The constructors are called only once per creation of an object while regular...

Members Only Content

Free Trial | Log In | Register | Home


Q24-Q36: Top 50+ Core Java interview Q&As

Focus is on Java classes, interfaces and generics the interview questions and answers style. Java classes and interfaces are the building blocks. Q24. What happens when a parent and a child class have the same variable name? A24. … Read more ›...

Members Only Content

Free Trial | Log In | Register | Home


Q29-Q53: Top 50+ FAQ JEE Interview Q&As

This extends Q1 – Q28 EE Java interview Questions and Answers Q29. What are the different ways can you wire up your dependencies using Spring? A29. 3 different ways. You can combine all 3 ways. Using an XML based application context file as demonstrated here in STEP 4 . …...

Members Only Content

Free Trial | Log In | Register | Home


Q37-Q42: Top 50+ Core Java Interview Q&As

As a Java developer, you may not need to know how the JVM works, but the most important topic that you must know is Java Garbage Collection. How the Garbage Collection and object referencing work in Java. Q37. What do you know about the Java garbage collector? … Read more...

Members Only Content

Free Trial | Log In | Register | Home


Q43-Q54: Top 50+ Core Java Interview Q&As

Q43. What can you tell about the performance of a HashMap compared to a TreeMap? Which one would you prefer? A43. A balanced tree does have O (log n) performance. The TreeMap class in Java maintains key/value objects in a sorted order by using a red-black tree. … Read more...

Members Only Content

Free Trial | Log In | Register | Home


Top 10 causes of performance issues in Java

Cause #1: The JVM spends more time performing garbage collection due to improper Garbage Collection (GC) configuration. E.g. Young generation being too small. Heap size is too small (use -Xmx). The application footprint is larger than the allocated heap size. … Read more ›...

Members Only Content

Free Trial | Log In | Register | Home


Top 15 slacknesses that can bite you as an experienced programmer or architect

Production issues seek the attention of middle and top level management. Here are a few things that you must pay attention as a software developer or architect to prevent any future embarrassments. You can use this as a check list.

#1: Not externalizing configuration values in config file(s) (E.g: .properties,

Read more ›



Top 5 Core Java Exceptions and best practices

#1: ConcurrentModificationException Getting a ConcurrentModificationException when trying to modify (i.e. adding or removing an item) a collection while iterating. The following code throws a ConcurrentModificationException. To avoid ConcurrentModificationException in a single-threaded environment, you can remove the object that you are working on with the iterator. … Read more ›...

Members Only Content

Free Trial | Log In | Register | Home


Top 5 reasons to fail your Java (or any job) interviews

#1. Saying too little

Screen shot 2014-12-19 at 10.51.35 PM

Especially to open ended questions like “tell me about yourself” or “describe a project that you were most proud of, and what were your contributions & accomplishments?”. Interviewers will be assessing how passionate you are about cutting code and solving technical &

Read more ›



Top 5 reasons why a resume fails to generate a response

Employers & recruiters get inundated with resumes, and they need to filter the eye catching resumes within a short period. So, resume writing is a skill & an art to get more interviews. Here are 5 key points to keep in mind.

#1. A boring and lengthy resume

It is important to understand that reading others’

Read more ›



Top 5 tips for software developers on blogging for additional income

There are tangible and intangible benefits to blogging, but for most of you the primary source of income will come from working as a Java developer, Java lead, Java architect, etc for an organization. Blogging can bring in a supplementary income and most importantly the intangible benefits like continuous proactive learning,

Read more ›



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 tips to go about writing loosely coupled Java applications

6 tips to go about writing loosely coupled Java applications useful not only for talking the talk in Java job interviews, but also to build maintainable Java applications. Q1. What is tight coupling? A1. If class OrderServiceImpl relies on parts of class PaymentServiceImpl that are not part of interface PaymentService,...

Members Only Content

Free Trial | Log In | Register | Home


Top 7+ Java productivity tools that make your life easier as a Java developer

In today’s enterprise Java development, you will use plethora of tools to make your life easier and more productive. The open-ended questions described below are not to make the Hire/No Hire decision, but to judge your seniority and experience. Q. Can you describe some real life scenarios in which tools...

Members Only Content

Free Trial | Log In | Register | Home


Top 8 Java 8 feature list

#1 One needs to get used to the transformation from imperative programming to functional programming. You like it or not, you will be using functional programming in Java 8, and interviewers are going to quiz you on functional programming. Fortunately, Java is not a fully functional programming language, … Read...

Members Only Content

Free Trial | Log In | Register | Home


What are good real life Java inheritance (or use of abstract classes) examples ?

We have already looked at Why favor composition over inheritance? with reasoning and code examples. Inheritance still has its use and let’s look at some real life examples. #1. Unit Test Classes In the base class you can wire up Spring configs, shared logic, … Read more ›...

Members Only Content

Free Trial | Log In | Register | Home


Why wait 5-10 when you can fast-track in 1-2 ?

open all | close all
Top