• 06 April

    [Solved] Exception in thread “main” java.lang.NullPointerException

    In this tutorial, we will see the most frequent java exception i.e. Exception in thread main java.lang.NullPointerException. It is one of the Runtime Exception. Raise your hand if you ever got NullPointerException while working on java code. I am sure that this is the exception you might have encountered most frequently. You might also agree […]

  • 27 March

    Top Object-Oriented Programming Languages to Follow in 2021

    Wherever you look, you face object-oriented programming languages. Well, many of the popular coding languages are object-oriented. The moment you decide to learn an object-oriented programming language, it might be quite overwhelming to pick the only one from this big pool of options. But don’t worry! Here you will find out which object-oriented programming languages […]

  • Top 10 Oracle certifications
    22 March

    10 Best Oracle Certification Courses, Training, Classes & Tutorials Online

    The Oracle Certifcation demonstrates an individual’s knowledge and skills in handling Oracle technologies and products. However, this java certification is granted to individuals based on the training, the passing score in the examination, and performance-based assignments. Oracle certifications are categorized into six different levels. 6 Categories Of Oracle Certifications Oracle Certified Junior Associate (OJA) The […]

  • String to char array C++
    08 March

    Convert string to Char Array in C++

    In this article, we are going to see how to convert string to char array in C++. String vs character array in C++ In C, we used string as character array. String used to be a collection of characters terminated by a NULL character. char str[]=”Java2Blog” Here, str[0]=’J’ str[1]=’a’ str[2]=’v’ str[3]=’a’ str[4]=’2’ str[5]=’B’ str[6]=’l’ str[7]=’o’ […]

  • How to end program in java
    08 March

    How to end program in java

    Ho In this post, we will see how to end program in java. You can use System.exit(0) to end program in java. Using System.exit() to end java program You can use exit() method of System class to end java program. System.exit() causes Java virtual machine to exit and terminate the current process. You can call […]

  • 22 January

    FizzBuzz program in Python

    In this post, we will see how to program FizzBuzz in Python. As per wikipedia, Fizz buzz is a group word game for children to teach them about division. Here are the rules of the game: First player starts the game by saying number 1. Next player says next number but fun part is If […]

  • Format double to 2 decimal places in java
    22 January

    Format Double to 2 Decimal Places in Java

    Learn about how to format double to 2 decimal places in java

  • Escape double quotes in String in Java
    19 January

    How to escape double quotes in String in java

    In this post, we will see how to escape double quotes in String in java. There are scenarios where you need to escape double quotes already present in the String. This generally happens while dealing with JSON file format or reading file data. Escape double quotes in java Double quotes characters can be escaped with […]

  • Convert Date to LocalDate in java
    12 January

    Java Date to LocalDate

    In this post, we will see how to convert Date to LocalDate in java. Sometimes, we may need to convert Date to new Java 8 APIs and vice versa. There are multiple ways to convert Date to LocalDate in java. Read also: Convert LocalDate to Date in java Using toInstant() method of Date class You […]