Tip: Analyse impact on put and get method Case 1: - hashcode override - No equals override - No What Will Happen- when you try to …
Read moreSingleton When there is only one instance creation is allowed OR We want to restrict instance creation of particular class and allow only one instanc…
Read moreJoin is method from thread class. It can be called on thread object and when it is called, current thread will wait for other thread (on which join is ca…
Read moreCountDownLatch is utility under java.util.concurrent package. We initialise CountDownLatch with some integer count value. One or more threads will wa…
Read moreSleep is method from Thread class. This can be called without object and will act on current running thread. Calling sleep on current thread will throw…
Read moreThere are two ways you can create threads By extending Thread class from java.lang package By Implementing Runnable interface Lets explore these m…
Read moreHi Readers, If you are beginner with Java then let me introduce your to constructor. Constructor class Animal() { public Animal ( ) { Sy…
Read moreHi Readers We must have heard or someone just asked you about Coupling and Cohesion. So lets here it You must know Cohesion and Coupling for good unde…
Read moreSingleton Design Pattern In Software Engineering Singleton pattern restricts from creating more than one object of class. Sometimes it's appr…
Read moreHi Readers, Here I am writing few common ways to create new object in JAVA. Some ways are very frequent but some we rarely use, but it is good to know …
Read moreAccess Modifiers In java we use access modifiers to control visibility of class and class members (Like instance variable, method, constructor) Jav…
Read moreHi Readers, In this tutorial i am describing how ti integrate logger into your web application, spring project or java application. Log4j log4j is …
Read moreWhy we need string buffer and string builder when we have string Hi Readers, If this question have struck your mind then i have answer for you. So t…
Read moreHi Readers, Knowing about java keywords in java coding is very important. This comes under java for beginners. So we will cover two aspects of Java i…
Read moreImmutability in Java Readers, first we will see little about wrapper classes in Java. Many of us know that java is not all objects, there are som…
Read moreEnums in Java Enum type is a special data type. It allows user to create a variable which will have values from pre-defined constants. Enums are like …
Read moreIn some languages char datatype is of 1 byte. So in those cases char is directly equivalent to byte. And you can confidently say that your char arr…
Read moreStatic in Java I am describing how static is special and very useful in java - "static" is a keyword in Java. It has a special memor…
Read moreBoth Abstract Class and Interface are used to implement abstraction in Java. But they are different in application and nature. Some key difference bet…
Read moreChecked Exception Are those which can be caught at compile time. Example - FileNotFound exception If some file that you are trying to read is not p…
Read more