4 Examples of Text Blocks in Java

While some programmers are troubled with frequent Java releases (it's actually hard to keep up), many are excited to see new features coming in Java every six months. I haven't been sharing a lot of new features lately, last I wrote about var from Java 10 and static factory from Java 9. Well, to be honest, I don't get much time to try out these new features and to publish articles on those, but a couple of new features from Java 12 and Java 13 caught my attention and I decided to give it a try and write something about them. So, the first feature in this series is the "Text block" of Java 13.

What is the Use of Method Overloading in Java and Object Oriented Programming? [Answer]

Many programmers, including Java and C++ developer, knows about the overloading concept like method overloading or function overloading, but if you ask them why you should overload a method? Many of them become clueless. This is a common problem of half learning i.e. you know the concept but you don't know the application. If you neither know what problem it solves nor what benefit it provides, then just knowing the concept is not good enough. You won't be able to reap all benefits if you just know the concept and never use it in practice. The most important benefit overloading provides is a cleaner and intuitive API.

5 Things Programmers Can Buy in Amazon Prime Day 2021 [Best Deals]

Hello guys, many of my friends and colleagues used to wait until November to buy books, gadgets, and other computer items to get the huge discount offered on Black Friday and Cyber Monday deals, but you don't need to wait that long. Amazon is bringing Black Friday to the summer with its annual Prime Day offers. The Amazon Prime day is nothing but a one-day (precisely one and half-day and this time full two-day) shopping extravaganza, where you will get huge discounts on thousands of Amazon products including books, games, gadgets, and other computer and electronics items. So, if you are looking to buy a new laptop, a new smartphone, or some fitness gadgets and watch then this is an awesome opportunity. 

What is the Use of Interface in Java and Object Oriented Programming? [Answer]

Many times, I have seen questions like why should we use an interface in Java? If we can not define any concrete methods inside the interface the what is the user of the interface? Or even more common, What is the real use of the interface in Java? I can understand beginners asking this question when they just see the name of the method inside the interface and nothing else. It takes time to realize real goodness or actual use of interface or abstraction in Java or any object-oriented programming. One reason for this is a lack of experience in really modeling something real in the program using object-oriented analysis and design. In this article, I will try to answer this question and give you a couple of reasons to use the interface in your code. If you have a good understanding of Object-oriented basics like Polymorphism, then you know that it allows you to write flexible code.

10 Abstract Class and Interface Interview Questions Answers in Java

Abstract class and interface are very popular in any object-oriented programming language or Java interview, and there are always one or more questions from this. The interface is more common, because of its popularity among designers but questions from abstract class also pop up now and then. Interview questions from the abstract class are more common on junior level or you say under 2 years experience of  Java programmers while interface-related questions are mostly asked on senior-level Java interview e.g. 4 or 6 years of experience. They are mostly asked along with other Java design pattern questions, like the Decorator pattern or Factory pattern.

Difference between Method Overloading and Overriding in Java?

Method Overloading vs Method Overriding
Though the name of the method remains the same in the case of both method overloading and overriding, the main difference comes from the fact that method overloading is resolved during compile time, while method overriding is resolved at runtime. Also, rules of overriding or overloading a method are different in Java. For example, a private, static and final method cannot be overridden in Java but you can still overload them. For overriding both name and signature of the method must remain the same, but for the overloading method, the signature must be different. Last but not least difference between them is that call to overloaded methods are resolved using static binding while the call to an overridden method is resolved using dynamic binding in Java.

Top 30 Eclipse Keyboard Shortcuts for Java Programmers [UPDATED]

Hello guys, if you use Eclipse for Java development and looking to increase your productivity then you have come to the right place. Earlier, I have shared the 5 best Eclipse courses and in this tutorial, I will share 30 Eclipse keyboard shortcuts to improve your productivity. This list is by no means complete, and I will suggest you guys share eclipse shortcuts listed other than here to make this more useful. Eclipse is the most used Java development IDE, and knowing these Eclipse shortcuts not only improves your productivity but also makes you more efficient. You will have more time for things you like to do. Using keyboard shortcuts also helps to impress colleagues and shows that you have a good hold on tools you used for Java Development.

Codecademy Learn Java Review - A Free Java Course to Learn Coding Online

Hello guys, you may not know but Codecademy has a free Java course that is perfect for beginners, almost 2.3 million students have already registered. Does it say anything about the popularity of Java? Given Java provides a really good prospect of getting a job and there is more than one reason to learn Java, I am not surprised by the number of students registered. Codecademy has always been a superb source to learn new programming languages or technology from the start. I first started using Codecademy for learning JavaScript using their free JavaScript course and then I used it a couple of months back to improve my Python and Linux command skills.

5 Websites to Learn Linux Command Line for FREE - Best of Lot

Hello guys, if you want to learn Linux online and looking for free resources to learn Linux commands and concepts then you have come to the right place. Earlier, I have shared Linux and shell scripting courses and tutorials and in this article, you will find the best places to learn Linux online. Linux is one of the most useful skills for Programmers and Developers and there are a lot of useful resources on the internet to learn Linux and master Linux command lines or bash shells. In this article, I will share websites where you can learn Linux for FREE. I have tried to include a variety of websites like Udemy and Coursera for online courses, CodeCademy and Educative for online interactive learning, and Pluralsight as a membership-based website. You can use these websites to learn Linux from scratch or to improve your Linux skills if you already using Linux but don't know Linux concepts and commands in-depth.

10 Reasons to Learn Java Programming Language and Why Java is Best

Java is one of the best programming languages created ever, and I am not saying this because I am a passionate Java developer, but Java has proved it in the last 20 years. Two decades is a big time for any Programming language, and Java has gained strength every passing day. Though there are times when Java development slows down, Java has responded well. Earlier with groundbreaking changes in the form of Enum, Generics, and Autoboxing in Java 5, performance improvement with Java 6, functional programming using the lambda expressions in Java 8, and Google's choice of language for Android apps development keeps Java as a front-line programming language.

10 Tools Web Developers should Learn in 2021 - Best of Lot

It's a popular saying that a craftsman is as good as his tools and the same goes for Web Developers. If you don't know your tools, you will struggle in your day-to-day job. At the same time, knowing your tool well can increase your productivity and help you become a star developer in your team. That's why I always in search of new tools which can make my developer life easy. Earlier, I have shared the best tools for Java developers and In this article, I am going to share some of the most essential tools for Web developers, both frontend and backend developers. These are the tools I use in my day-to-day life and there is a good chance that you may already be familiar with most of them, which is great.

Difference between Period and Duration class in Java 8? [Example]

What is the difference between Period and Duration class in Java is one of the popular Java 8 interview questions and has been asked too many of my readers recently. If you were also wondering the difference between Period vs Duration and when to use Period over Duration and vice-versa then you have come to the right place. Java 8 has two classes to represent differences in time like Duration and Period. The main difference between Period and Duration is that they represent the difference in different units, A Duration is used to calculate time difference using time-based values (seconds, millisecond, or hours) but Period is used to measure the amount of time in date-based values like days, months and year.