Scroll to top

Core Java

Posted by JBT
July 21, 2018

History of java

Java is a general, all-purpose computer programming language that is circumstantial, class-based, object-oriented, and specially designed to have few application dependencies as possible. Java was developed initially for interactive television, but it was too advanced technology for the digital cable television industry at the time. It is proposed to let application developers "write once, run anywhere, suggesting that compiled Java code can run on all platforms that condone Java without the necessity to recompile. Java applications are compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture.

Read More
Posted by JBT
April 28, 2018

Different ways to create an object in Java

You must be aware of creating an object of a class by using the new keyword, but that is not the only way to create an Object. There are several other ways to create an object of a class :

  • Using new keyword
  • Using new Instance (Reflection)
  • Using Clone
  • Using Deserialization
  • Using ClassLoader
  • ... don't know :)

Read More
Posted by JBT
April 19, 2018

Java Class & Object Tutorial for beginners

A class is a template for creating objects which define its state and behavior. A class contains field and method to define the state and behavior of its object. 

Read More
Posted by JBT
March 26, 2018

Java Collection Iterators

With this article we will kick-off a new series where we will look deep into Java’s different collection solutions which are available in the version 1.8. For concrete implementations (like ArrayList or TreeSet) we will give you some use-cases where these collections will excel and some cases where you should use different collections. And of course we will write about the fluent API introduced with Java 8.

Read More
Posted by JBT
February 25, 2018

Java Lambda : Beginners Guide

This article explains Java Lambda expressions in Java 8. You can find complete code here.

Read More
Posted by JBT
February 1, 2018

Java Hashmap tutorial

Java HashMap is HashTable based implementation of Map. This is the reason why interviewer always asks for the difference between HashMap and HashTable. HashMap is mostly equaled to HashTable except below two differences.

  1. HashMap is unsynchronized while HashTable is synchronized.
  2. HashMap permits null while HashTable doesn't.

    Read More
Posted by JBT
November 2, 2017

this keyword in Java

What is this

this is a keyword in Java. It can be used inside the method or constructor of a class. It(this) works as a reference to the current object, whose method or constructor is being invoked. This keyword can be used to refer to any member of the current object from within an instance method or a constructor.

Read More
Posted by JBT
October 26, 2017

Order of execution

In this article, we will learn about the order of execution of blocks in Java....

Read More
Posted by JBT
October 12, 2017

public static void main(string args[]) Explanation

JVM will always look for a specific method signature to start running an application, and...

Read More
Posted by JBT
September 2, 2017

Java Basics:Getting Started with Java

Here we will discuss some basics topics related to Java.

  1. Where to download Java.
  2. How to install Java.
  3. Setting up the Environment Variables.
  4. Our First Java Program.
  5. How to compile a Java application.
  6. How to run a Java Application.
  7. Difference between important terms in Java (JDK vs JRE or J2SE vs J2EE..).

Read More