Learn Java programming like a pro with the help of our simplified tutorials, examples and frequently asked Java interview questions and answers. Java tutorial for beginners and professional java developers!
Junit is one of the most popular unit testing framework for java developer Junit has been important in Test driven Implementation.
Below are the Annotation which are available in Junit 4
@page { margin: 2cm }
td p { margin-bottom:...
Heap Sort is not that much popular in the sorting mechanism but the heap sort is the one which actually help you in most of the complex problem solution. as it is one of the most efficient sorting algorithm.
(adsbygoogle = window.adsbygoogle || []).push({});
Lets see the java program of implementing heap...
JNDI now a day is very popular as it provide the underline database connectivity directly to the application which providing any driver and connection string and all , everything has to be defined at application server level only the JNDI name is what...
Reversing the string is quiet simple in java but to remove the duplicate character in string without using and inbuild function or utility we need to do some brain storming.
There are 2 ways we can solve the problem.
1) Using Build in functions and solve the problem (Ex. Use HashSet to Remove Duplicate and...
Spring as we all know is very popular because of its MVC framework. So we have 2 ways to Implement the Spring MVC using dispatcher servlet by Xml or can be configure by Java Annotation.
Below is the Program of Implementing the Java Annotation for Dispatcher...
Spring jdbc is very important as all the enterprise level application always use database and Spring JDBC comes in picture when we connect database with java application using spring framework.
Below program we are using the spring jdbcTemplate...
Hey all , this is queit popular interview question to write the program to find all the substring of the string in java
In my earlier post I have talked about Tower of Hanoi problem
You can also see other Sorting program
Bubble Sort
Selection Sort
Insertion Sort
Here is my program
PROGRAM...
Hey guys , Today one of my friend asked me a question regarding the function which will return the baised probability of 75% of 1 I thought lets share the answer with you guys as well
So below is my solution of the problem and my approach.
(adsbygoogle = window.adsbygoogle || []).push({});
Approach
First...
Spring , one of the most popular DI (Dependency Injection) framework used in Enterprise now. There are so many feature of spring because of which it is using so much in market right now but the most important and the core feature is IOC i.e Inversion...
Hello Guys , Hope you all are doing good , Today we will learn more about activemq so lets get start.
What is ActiveMQ ?
Apache ActiveMQ ™ is the most popular and powerful open source messaging and Integration Patterns server.
Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes...
Linkedlist as we all know is one of the most important topic of interview especially for coding round.
We will not talk more about the theoretical part of linked list
Program for the insertion and deletion operation of linkedlist.
...
Hello friend , Knowing one to one relation is very easy to understand for the interview aspirant , but to implement the knowledge into programming is the key which makes one a good programmer.
Today we will learn more about hibernate mapping -One to...
In this post we will try to understand whether the book is on public link or not.
First question someone ask would be , What is meant by public link ??
PUBLIC LINK- Public link is referred as the links where all the contents are free to use , there is no copy right problem if we use the content of the website.
Objective:...
-------------------Garbage Collection-----------------------
In java , programmer need not to care about the objects which are no longer in use. garbage collector
destroy those objects and make the memory available for the programmer to use again.
- garbage collector not guaranteed to run at any specific time.
there...
Design Pattern
-----------------
* Creatational Design Pattern- the way to create object.
used when we need to make decision for creating the instance of class.
Type-
1) Factory Design pattern- It says that let create the abstract class or interface for creating an object but let the subclass decide which class...
Hello Guys , Hope you all are doing good , so today we are going to see the BST and DST Program in java.
Let see the implementation of BST and DST in single program
package inv.learning.searching;
import java.util.Iterator;
import java.util.LinkedList;
public class BFT {
public static void main(String[]...
Hello Everyone , Hope you all are doing good , Today we will learn about class loading in java , class loading is very basic topic which most of the programmer dont know, so lets see what and type of classloaders.
--jvm Class Loading---
Three activities while class loading
-loading
-linking
-initialization
Loading---...
Hello guys , today we will read about one important characteristice of oops i.e Polymorphism
--polymorphism---
One thing in many form
or
The ability to appear in more than one form
In Java there are 2 type of polymorphism
-compiler time polymoriphism (static binding) -achieved by method overloading
...
Hi guys , Hope you all are doing good , Today I am going to share few tricky questions which i felt everyone who is preparing for java interview should know. So lets see
Q1) Difference between new operator and newInstance() method ?/
- new is used when we know the type of class instance know at...
Hi Guys, Yesterday I posted about Inheritance , what how and type of inheritance . today i am going to post articles about the Indepth knowledge of inheritance, So lets starts
HOW TO PREVENT THE CLASS FROM INHERITANCE
to prevent the class from inherit , we should use final modifier
Ex-
Class A{
}
Class B extends...
Guys , Hope you are doing well , Today i am again back with some good article , today i will try to write something which i think is one of the favorite topic of all time for an interviewer.
So Inheritance , Most of you knows what is inheritance but the actual in depth knowledge of inheritance is very much...