Java Code Geeks » Arpit Mandliya http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Fri, 22 May 2015 07:00:52 +0000 en-US hourly 1 http://wordpress.org/?v=4.2.2 Difference between Abstract Class and Interface in javahttp://www.javacodegeeks.com/2014/06/difference-between-abstract-class-and-interface-in-java.html http://www.javacodegeeks.com/2014/06/difference-between-abstract-class-and-interface-in-java.html#comments Wed, 25 Jun 2014 16:00:41 +0000 http://www.javacodegeeks.com/?p=26868 Some of the popular interview questions are “What are the differences between abstract class and interface”, “When will you use abstract class and when will you use interface”. So in this article, we will go through this topic. Before going through differences between them, let’s go through their introduction. Abstract class Abstract classes are created ...

 

]]>
http://www.javacodegeeks.com/2014/06/difference-between-abstract-class-and-interface-in-java.html/feed/ 8
How HashMap works in javahttp://www.javacodegeeks.com/2014/03/how-hashmap-works-in-java.html http://www.javacodegeeks.com/2014/03/how-hashmap-works-in-java.html#comments Wed, 26 Mar 2014 11:00:37 +0000 http://www.javacodegeeks.com/?p=22548 Most common interview questions are “How HashMap works in java”, “How get and put method of HashMap work internally”. Here I am trying to explain internal functionality with an easy example. Rather than going through theory, we will start with example first, so that you will get better understanding and then we will see how ...

 

]]>
http://www.javacodegeeks.com/2014/03/how-hashmap-works-in-java.html/feed/ 28
Externalizable in javahttp://www.javacodegeeks.com/2014/03/externalizable-in-java.html http://www.javacodegeeks.com/2014/03/externalizable-in-java.html#comments Mon, 03 Mar 2014 14:00:03 +0000 http://www.javacodegeeks.com/?p=22200 Before understanding Externalizable interface, you need to have idea about Serialization.You can read more about Serialization at Serialization in java. Java provides mechanism called serialization to persists java objects in a form of ordered or sequence of bytes that includes the object’s data as well as information about the object’s type and the types of ...

 

]]>
http://www.javacodegeeks.com/2014/03/externalizable-in-java.html/feed/ 0
Serialization in javahttp://www.javacodegeeks.com/2013/03/serialization-in-java.html http://www.javacodegeeks.com/2013/03/serialization-in-java.html#comments Tue, 12 Mar 2013 08:00:30 +0000 http://www.javacodegeeks.com/?p=9638 Java provides mechanism called serialization to persists java objects in a form of ordered or sequence of bytes that includes the object’s data as well as information about the object’s type and the types of data stored in the object. So if we have serialize any object then it can be read and deserialize it ...

 

]]>
http://www.javacodegeeks.com/2013/03/serialization-in-java.html/feed/ 9
Template method design pattern in Javahttp://www.javacodegeeks.com/2013/03/template-method-design-pattern-in-java.html http://www.javacodegeeks.com/2013/03/template-method-design-pattern-in-java.html#comments Fri, 08 Mar 2013 14:00:51 +0000 http://www.javacodegeeks.com/?p=9539 Template method pattern is a behavioral design pattern which provide base method for algorithm,called template method which defers some of its steps to subclasses So algorithm structure is same but some of its steps can be redefined by subclasses according to context. Template means Preset format like HTML templates which has fixed preset format.Similarly in ...

 

]]>
http://www.javacodegeeks.com/2013/03/template-method-design-pattern-in-java.html/feed/ 2
Difference between Comparator and Comparable in Javahttp://www.javacodegeeks.com/2013/03/difference-between-comparator-and-comparable-in-java.html http://www.javacodegeeks.com/2013/03/difference-between-comparator-and-comparable-in-java.html#comments Fri, 01 Mar 2013 20:00:49 +0000 http://www.javacodegeeks.com/?p=9282 One of the common interview question is ‘What are differences between Comparator and Comparable’. or ‘How will you sort collection of employee objects by its id or name’.For that we can use two interfaces.i.e. Comparator and Comparable.Before we actually see differences,let me give you brief introduction of both. Comparable interface: Class whose objects to be ...

 

]]>
http://www.javacodegeeks.com/2013/03/difference-between-comparator-and-comparable-in-java.html/feed/ 35
Observer design pattern in Javahttp://www.javacodegeeks.com/2013/03/observer-design-pattern-in-java-2.html http://www.javacodegeeks.com/2013/03/observer-design-pattern-in-java-2.html#comments Fri, 01 Mar 2013 17:00:01 +0000 http://www.javacodegeeks.com/?p=9247 As the name suggests it is used for observing some objects.Observer watch for any change in state or property of subject.Suppose you are interested in particular object and want to get notified when its state changes then you observe that object and when any state or property change happens to that object,it get notified to ...

 

]]>
http://www.javacodegeeks.com/2013/03/observer-design-pattern-in-java-2.html/feed/ 0
JAXB tutorial – Getting Startedhttp://www.javacodegeeks.com/2013/02/jaxb-tutorial-getting-started.html http://www.javacodegeeks.com/2013/02/jaxb-tutorial-getting-started.html#comments Fri, 22 Feb 2013 11:00:30 +0000 http://www.javacodegeeks.com/?p=8918 Note: Check out our JAXB Tutorial for Java XML Binding – The ULTIMATE Guide What is JAXB? JAXB stands for Java architecture for XML binding.It is used to convert XML to java object and java object to XML.JAXB defines an API for reading and writing Java objects to and from XML documents.Unlike SAX and DOM,we ...

 

]]>
http://www.javacodegeeks.com/2013/02/jaxb-tutorial-getting-started.html/feed/ 11
Hibernate inheritance: Table per class hierarchyhttp://www.javacodegeeks.com/2013/02/hibernate-inheritance-table-per-class-hierarchy.html http://www.javacodegeeks.com/2013/02/hibernate-inheritance-table-per-class-hierarchy.html#comments Fri, 22 Feb 2013 08:00:25 +0000 http://www.javacodegeeks.com/?p=8902 In this tutorial we will see how to implement inheritance in hibernate.There are 3 ways in which you can implement inheritance in hibernate.In this post,we will see one of them i.e.one table per class hierarchy. Inheritance in hibernate: Java is object oriented language and inheritance is one of main functionalities of java.Relation model can implement ...

 

]]>
http://www.javacodegeeks.com/2013/02/hibernate-inheritance-table-per-class-hierarchy.html/feed/ 3