Tag: Java Basics

Core Java

Java Wrapper Classes

Introduction: java.lang package provides a wrapper class for each of the primitive data types. Since Java is an object-oriented language, these wrapper classes help us in treating our primitives much like any other Java object. All wrapper classes are final. Also, the objects instantiated of these wrapper classes are immutable i.e. the value stored within […]

Be the First to comment. Read More
Core Java

Java Enum

Introduction: Java Enum is a Java type which is used to define a fixed set of constants.  For instance, if we wish to store the names of all the months like JANUARY, FEBRUARY, MARCH etc we should prefer creating an enum to hold it. In this tutorial, we’ll learn why using Enums is a good […]

Be the First to comment. Read More
Core Java

Java var-args

Introduction: Java var-args(variable-argument) was the concept first introduced in JDK1.5. As the name suggests, it helps us to create a method which can accept a variable number of arguments based on our varying needs. Prior to JDK1.5, if we wish to create a method which can accept any number of arguments, we would probably opt […]

Be the First to comment. Read More
Core Java

Java – Break and Continue

When dealing with loops in Java, break and continue keywords are the ones we often come across.  We’ll see what they mean and how can they be used. We’ll be learning the usage of Java break and continue statements in both labelled as well as unlabelled context. Let’s start by first understanding what is a […]

Be the First to comment. Read More
Core Java

Exception Handling in Java – try, catch and finally

The try-catch-finally blocks available in the Java exception handling framework are a great way to deal with exceptions. In the previous post, we covered what exceptions are and their types – checked vs unchecked exceptions. Today we’ll enable you to be a pro in using Java try-catch-finally blocks for exception handling. Before proceeding with this […]

Be the First to comment. Read More
Core Java

Exceptions in Java : An Introduction

Java Exception framework helps us to handle exceptions in Java very effectively and without much pain. In this post, we’ll learn about Exceptions in Java, their types, the difference between checked and unchecked exceptions. We’ll also cover significantly good number of classes available in Java Exception framework. Introduction : Exceptions are abnormal disruptions in the […]

Be the First to comment. Read More
Core Java

OCA Java 8 Preparation : Operators

Java Operators is one of the topic in which Java OCA aspirants score comparatively a lot lower than the other sections of the test. In this post, we’ll cover all the must-know points about Java Operators for your OCA exam. Now pass your Java OCA Exam with flying colours! Operator Precedence & Associativity : Precedence […]

Be the First to comment. Read More
Core Java

Java OCA Certification Preparation Series

Struggling with preparing for your Oracle Java OCA certification( Exam Number –1Z0-808 )? Looking for where to start ? We have got you covered. It is recommended for you to go through below list of articles to give a sharp edge to your Java OCA Preparation. I am sure you are going to find them […]

Be the First to comment. Read More
Core Java

OCA Java 8 Preparation : DateTimeFormatter

Introduction : DateTimeFormatter class belongs to java.time.format package. You can use it to format or parse the date or time or a datetime object. Remember for the sake of exam, it defines rules for both parsing and formatting. To instantiate a DateTimeFormatter, use any of the below ways : Calling the static ofLocalizedXXX() method, passing […]

Be the First to comment. Read More
Core Java

OCA Java 8 Preparation : Lambda Expressions

  The concept of Lambda expressions and Functional Interface(FI) is itself very large in scope. However, for the OCA Java 8, you are expected to know only the basics of Lambda Expression. Today, we’ll cover lambda expressions in great details for your Java OCA exam. To understand why to even use lambda expressions , you […]

2 comments Read More