Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our YouTube channel to start Rocking right now!
Gain access to the industrys' best FREE video guides including:
1. Core Java guides
2. Enterprise Java guides
3. JVM insights, configuration and troubleshooting guides
4. Java performance guides
5. Java Interview Questions
and many more ....

Visual Studio Code vs IntelliJ IDEA – Which is best for Java devs?

When you spend more time in front of your code than you do with your family, you can officially call your IDE (Integrated Development Environment) “home”. Most developers invest quite a bit of time and energy in customizing their digital work environment with plugins, modules, and eye-friendly color themes. After all, it’s where they “live”.  If your IDE is your ...

Read More »

Reverse a String in Dart

In this article, we will look at string reversal in Google’s Dart language. How to Implement the Solution Below is the completed Dart solution: 1 2 3 4 5 6 void main(List<String> args) {     print( reverse(args[0]) ); } String reverse(input) {     return input.split('').reversed.join(); } Much like C or Java, Dart uses the function name main as an entry point for ...

Read More »

Test Setup is Somewhere Else

What to Expect of a Test Case It prepares some scenarioIt executes the system under testIt makes some concrete assertions of an answer that was predicted at the time the test was constructed What if you see… Here’s a test. It’s in Java, but it might be in any language. 1 2 3 4 @Test void theOperationIsSuccessful() {     assertTrue(service.isLastOperationSuccessful()); } ...

Read More »

Six More JEPs Proposed for JDK 14

A recent Mark Reinhold message announces six new “JEPs proposed to target JDK 14”: JEP 345, JEP 361, JEP 363, JEP 364, JEP 365, and JEP 367. Assuming no objections are made by November 7, these JEPs will be targeted to JDK 14 along with previously targeted JEPs JEP 349 (“JFR Event Streaming”), JEP 352 (“Non-Volatile Mapped Byte Buffers”), and ...

Read More »

Java 13: Enhancements to Switch Expressions

You may remember from my previous post that, in Java 12, the traditional switch statement was enhanced so that it could be used as an expression. In Java 13, there has been a further change to this feature. The break statement can no longer return a value. Instead, you have to use the new yield statement, as shown below: 01 ...

Read More »

AtomicInteger on Java and Round-Robin

java-interview-questions-answers

AtomicInteger belongs to the family of Atomic Variables. The main benefit is that using it, is not blocking instead of doing a blocking synchronization, thus you avoid the suspension and rescheduling of thread. The AtomicInteger is based on the Compare and Swap mechanism and is part of the scalar group of the atomic variables. Our first use case would be a ...

Read More »

Restoring Cassandra Priam Backup With sstableloader

I’ve previously written about setting up Cassandra and Priam for backup and cluster management. The example that I gave for backup restore there, however, is not applicable in every situation – it may not work on a completely separate cluster, for example. Or in case of partial restore to just one table, rather than the whole database. In such cases ...

Read More »

Don’t comment bad code—rewrite it

In this post i will share my experience of “comments in code” that i have got by reading code , writing code and reading books. Lets start with famous quote 1 2 “Don’t comment bad code—rewrite it.”   —Brian W. Kernighan and P. J. Plaugher Lots of comment in code looks just like above image and it is distraction. Comments are lie Most ...

Read More »

SQL as a Service

java-interview-questions-answers

I’ve been thinking about this since 2007, somewhere around the time S3 was launched by Amazon. I even tried to implement it a few times, but failed right after the design phase. I’ve heard about a startup, which tried to do it too, but also failed. I’m still not sure whether it’s possible to do, but it could definitely become ...

Read More »