Browsing articles in "Core Java"
Nov
27
2016

Polymorphism in java with example and clear understanding

core-java

Hi in this post we will see what is polymorphism in java. I think this is one of favorite interview question as well. Let me start with the definition of polymorphism then we will see example. polymorphism definition: property of object to take many different form depending on the type of reference used to access the […]

Jun
10
2016

Most important java/JEE interview question and concept

In this post of java tutorial we will see some of most important java interview question. These questions are asked most frequently. Although question may vary depending on the interviewer , experience level and job profile but these are some basic question that you may face.  These questions are mixed from core java, java concept, […]

Mar
26
2016

Oracle Database Connectivity example in java

Hi in this post we will see JDBC connectivity of oracle DB. I am writing this post because when i was trying it for my own then i faced one problem which i will discuss later in this post. Direct solution to this problem is not available  on stackoverflow or any other website.  Let see

When […]

Nov
29
2015

read xlsx file in java

core-java

In this post of java tutorials we will see how to read xlsx file . We need few jar  for this. So before running this program please add following jars in your classpath. This program and jar files used in this are available in github repository. dom4.jar org.apache.poi-osgi-3.8-sources.jar poi-3.5-FINAL.jar poi-3.8-beta2-20110408.jar poi-ooxml-3.7-20101029.jar poi-ooxml-schemas-3.7-beta1.jar xmlbeans-2.5.0.jar xmlbeans-xmlpublic-2.4.0.jar

[…]

Nov
29
2015

Sorting list of maps based on a key, value pair values

core-java

In this post of java tutorial i will see how to Sort list of maps based on value of a single <key, sortingCriteriaValue> pair of maps. For example let we have student list of maps. Map have three key value pair having name, collage and course of students. We want to sort student list based […]

May
19
2015

java Adapter class example

adpter class example in java

Hi in this post of core java tutorial i will discuss about Adapter class in java. Why adpter class is used. Adpter is design pattern in java. Adpter is somthing that connect two component. Adapter is a pattern that provides default (often empty) implementation of interface or abstract class. . It is useful because very often […]

May
17
2015

Access Modifier in java and Difference in protected and default with example

access modifier in java with example

In this tutorial of core java we will see what are access modifier available in java and what is scope of these modifier. I will also cover some misunderstanding that most of people(earlier me too :)) carry with confidence regarding modifiers scope. These are basically four type of access modifier in java. private default or […]

Apr
5
2015

extend Thread and implement Runnable difference

Implent runnable extend thread

In this post we will see what exactly the difference between extend Thread and implement Runnable. Most of people ans is simple which is After extending a class we do not have scope to extend another class. This answer is accurate.But there are some more in depth answer.In this post we will see what is […]

Nov
30
2014

Deep Copy And Shallow Copy in java

Hi in my last post object class  in java and method of object class we discussed about clone method of object class and what is object cloning .I also discussed about shallow copy and deep copy .In this post we i will discuss succinctly what is difference between Deep Copy And Shallow Copy and  will show implementation […]

Nov
18
2014

object class  in java and method of object class

Hi in this post of core java tutorial i will explain the most important class of java which is Object class and its methods .  Object class is super class of all the classes in java . For Every java class there is a super class, which is object class either in direct way or indirect way. […]

Pages:12»