CodesJava

Easy learning with example program codes

CSE full form

CSE: – Centre for Science and Environment

Centre for Science and Environment (CSE) is a non-profit organisation based in New Delhi which researches into, lobbies for and … Read More

Posted in Java   

How to restart system in Java?

import java.io.IOException;
 
public class Test {
  public static void main(String[] args) {
	  try {
		  Runtime.getRuntime().
Read More
Posted in Java   

Java Runtime exec() method

import java.io.IOException;
 
public class Test {
  public static void main(String[] args) {
	 try {
		Runtime.getRuntime().
Read More
Posted in Java   

difference between callable and runnable

                          Runnable                             Callable
Available in java.lang package. Available in java.util.concurrent package.
Method: void run() Method: V call() throws Exception
It cannot return any value. It can return value.
Read More
Posted in Java   

callable and future in java

The Callable interface available in java.util.concurrent package. It contains one method call() which returns the Future object. Return value can be retrieved after termination with get.
The … Read More

Posted in Java   

fork join in java

The ForkJoinPool was introduced in java 7. It works on fork and join principle. In first step (fork) the task splits itself into smaller subtask which will … Read More

Posted in Java   
Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki