Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications – on any kind of deployment platform. Spring is a powerful, lightweight framework used for application development. In broader terms, you can say that the Spring framework is a well-defined tool that supports several web applications using Java as a programming language.Continue reading “Spring Framework”

Inner class(Nested Class) in java

In Java, it is possible to define a class within another class, such classes are known as nested classes. They enable you to logically group classes that are only used in one place, thus this increases the use of Encapsulation, and creates more readable and maintainable code. The scope of a nested class is bounded by the scopeContinue reading “Inner class(Nested Class) in java”

Anonymous Inner Class in Java

It is an inner class without a name and for which only a single object is created. An anonymous inner class can be useful when making an instance of an object with certain “extras” such as overloading methods of a class or interface, without having to actually subclass a class. Anonymous inner classes are usefulContinue reading “Anonymous Inner Class in Java”

Algorithm for sorting images by its date using Files

1.Create a file object and pass the location path of the folder in the argument. 2.Access all the files contained in the specified folder using listFiles() and it returns a file Array .Store that file Array in new file array reference. 3.Seperate the image files from the folder. check all the files ending with jpgContinue reading “Algorithm for sorting images by its date using Files”

Map Interface and list interface

Map Interface public interface Map<K,V> A map contains values on the basis of key, i.e. key and value pair. Each key and value pair is known as an entry. A Map contains unique keys. Map is useful, when we have to search, update and delete values based on keys. An object that maps keys toContinue reading “Map Interface and list interface”

Collection in Java 

 Collection in Java is a framework that provides an architecture to store and manipulate the group of objects. Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion. Java Collection means a single unit of objects. Java Collection framework provides many interfaces (Set, List, Queue,Continue reading “Collection in Java “

java.util.Arrays

This class is a member of the java collection framework. This class contains various methods for manipulating arrays (such as sorting and searching). This class also contains a static factory that allows arrays to be viewed as lists(to be discussed). The methods in this class all throw a NullPointerException, if the specified array reference is null, exceptContinue reading “java.util.Arrays”

Garbage collection

In C/C++, programmer is responsible for both creation and destruction of objects. Usually programmer neglects destruction of useless objects. Due to this negligence, at certain point, for creation of new objects, sufficient memory may not be available and entire program will terminate abnormally causing OutOfMemoryErrors. But in Java, the programmer need not to care for allContinue reading “Garbage collection”

Exception handling

The Exception Handling in Java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained. Exception is an abnormal condition as per dictionary meaning. In java, an exception is an event that disrupts the normal flow of the program. It is an object which is thrown at runtime. SupposeContinue reading “Exception handling”

String Methods

int length(): Returns the number of characters in the String. char charAt(int i): Returns the character at ith index. String substring(int i): Return the substring from the ith  index character to end. String substring(int i,int j): Returns the substring from i to j-1 index. String concat (String str): Concatenates specified string to the end of this string. int indexOf(String s): Returns the indexContinue reading “String Methods”

Design a site like this with WordPress.com
Get started