Showing posts with the label Core-JavaShow all

Thread Join Example

Join 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 more

Thread Sleep Example

Sleep 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 more

Constructor in Java

Hi Readers, If you are beginner with Java then let me introduce your to constructor. Constructor class Animal() { public Animal ( ) { Sy…

Read more

Cohesion and Coupling

Hi 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 more

Immutability in Java

Immutability 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 more

what is Enum in Java

Enums 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 more

static in Java

Static 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 more