Welcome to the Core Java Tutorials series, be here for couple of weeks and follow the series step by step. You guys are going to view one of the best content over internet as if today. Let?s start our journey to be a Core Java expert by following this Java Programming Tutorials series.
In general programming terms a variable is a symbolic name that points to some reserved storage location. Every storage location that is pointed by a variable can consists of some value or it can be empty, that means a variable is an identifier for some value so that the operations can be performed on that value.
Java is an object oriented programming language, a language is considered as a programming language if that language has following properties. 1) Abstraction 2)Inheritance 3) Polymorphism 4) Encapsulation
In Java there are three access modifiers public, private and protected but there is one more access level called default. If any class, method or variable does not have public, private or protected access level than the access level is called default. So in Java everything has a access level, at least default.
In this article we will see looping in Java, loops are used to execute a block of code saveral times. There are three types of loops in Java, for loop, while loop and do-while loop. We will see their syntax and usage with example in rest part of this article.
If-else statements are most commonly used decision making keywords in any programming language and hence in Java. If-else statements works on the basis of a conditional expression in if(condition_expression), if the condition returns true than the code in if?s body executes and if the expression returns false than code in else?s body executes. Here is a basic syntax of simple if-else statement.
In this article we will learn about Array Declaration, Initialization and Iteration in Java. We will come to known ways of array declaration, assigning values to an array and iteration through an array to access values.
Interfaces are kind of a contract in Java Programming, what contract means here is you can have a number of method declared in an interface and every class that is implementing this interface must implement all methods of the interface, for example you can have a interface Car like:
An immutable class in Java is a class, whose object's states can not be changed once created like String, Integer, Float etc. In this article we will see what is an Immutable class, what are benefits of having an Immutable class and how to construct a perfect immutable class in Java.
In this article we will see about Enums in Java, we will come to know what is Enum in Java?, How to declare a Enum and How to access Enum values.
Enum were introduced in Java5.0 to restrict the value of a variable to some predefined options, this can reduce bugs in applications.
One of the most popular and frequently asked question from Core Java interview is, How HashMap works in Java or Internal Working of HashMap or How get() and put() methods of HashMap works or How HashMap ensures uniqueness of its keys.