Parallel in Java Thread

Create Parallel Class Create package demo and create new java class as below: package demo; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ParallelTasks { private …

Parallel in Java Thread Read More

Annotations in Java

Create Annotations Create package annotations and create new annotations as below: MyClass Annotation Create new java file named MyClass as below: package annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import …

Annotations in Java Read More