Hi ,

Recently I was taking few Interviews for Senior Java Developer position. I was shocked to see that more than 60% of the developers were not able to provide answers to basic core java questions.

We can't construct a house without strong pillars. Similarly, if you want to excel in Java, having good Core Java knowledge is a must. So, I am sending some of the topics from Core Java in the "Back to Basics" Series.

  1. Java printf() method - I am sure that you all have used System.out.println() method. But, are you aware of printf() method? It's very useful in producing formatted output to the console.
  2. Type Casting in Java - I am sure you know about it or at least heard about it. But, do you know there are three types - Widening and Narrowing, Upcasting and Downcasting, and Autoboxing and Unboxing.
  3. Java String join() method - How would you generate CSV data from a bunch of strings? Using for-loop? It's a trivial task and that's why Java 8 added this very useful method in String class to join multiple strings.
  4. Java Static Constructor -  Can we have a static constructor in the Java Class? First answer it in your mind and then read the article. Don't feel bad if your answer is wrong. If you answered correctly, then did you have proper reasoning to it? I think you will learn something from this article for sure. Give it a read.
  5. Java Methods - Everybody has used java methods. Even if you have written a simple "Hello World" program, you have created a main method. Learn everything about methods in Java. Also, checkout the 8 different types of methods listed here. Can you find some more? If yes, hit reply and I will add them too.

NOTE: I am planning to send 5 useful Core Java articles in every email, preferably twice a week. If you feel it's too much for you, please let me know and I will take you off this series emails.

Thanks,
Pankaj


Copyright © 2019 JournalDev, All rights reserved.

You are receiving this email because you subscribed to JournalDev Newsletter. If you don't want to hear from us, you can Unsubscribe here.