This series of Core Java tutorials is designed for students and working professionals by providing basic to advance, in depth knowledge of all core concepts with the help of simple and easy to understand code examples.
Java is a widely used open source high-level programming language originally developed by Sun Microsystems and released in 1995.
Here you will learn the fundamentals of Core Java (OOPS, Class, Interface etc.) along with advanced topics like Collection API, File Handling, Exception Handling etc.
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.
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.
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
An interface is a mechanism to obtain full abstraction in java, interfaces can contain constants, nested types and abstract methods with no body or implementation at all. Interfaces can not be instantiated on their own so must be implemented by a class or extended by some other interface to be used.
On this particular blog we will come across a very useful and frequently used concept i.e. Method Overloading. We will see the conditions and scenarios of, usage of method overloading in java and when it is overloading and when it is not.
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 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 particular blog we will look into a very useful concept in java i.e. Encapsulation. Encapsulation is one of the four (Abstraction, Encapsulation, Inheritance & Polymorphism) OOPS concepts in Java.
In static binding, the method or variable version that is going to be called is resolved at compile time, while in dynamic binding the compiler could not resolve which version of a method or variable is going to bind.
In this particular blog we will look into a special case of Inner Classes i.e. Anonymous inner classes. In java anonymous classes are also called anonymous inner classes, the fact behind this statement is that Anonymous classes are always defined inside another class and there is no anonymous class without the word inner.
In todays discussion we will come across the relationship in between a Sub Class and a Super Class in Java. In java classes can be derived from another classes, the class that is being derived is called a subclass and the class from which the subclass is being derived is called a superclass.
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.
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.
Collection framework provides interfaces and class implementations that enable data handling easy and meaningful. Using collections one can store, retrieve and manipulate the data very effectively and easily.
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.
In this particular blog we will dive into ?Buffered Streams. We will come to know how to read from and write to a file in java using Bufferd Streams and why this is a good practice to use buffered streams over byte and character streams.
In our previous discussion we came across, the foundation of Java I/O and a little deep about InputStreams and OutputStreams. In this particular blog we will see Byte Stream and how to Read and Write a file in Java using Byte Streams
In this particular blog we will see How to read a csv file in Java and How to convert data from a csv file to java object. A csv file is a simple text file containing text data, separated with a white space or a comma.
Jdom is the most developer friendly XML parser to read and create an xml file in Java. Jdoms programming friendly nature provides mechanism and implementation that makes it easy to xml parsing for java developers.
In today discussion we will talk about Different type of Java XML parser and their implementations. Java provides full support with a number of general purpose xml readers to read, write and manipulate xml data and documents.