java.lang.Runtime.availableProcessors() java.lang.Long.highestOneBit() java.lang.Long.highestOneBit() java.lang.Runtime.availableProcessors() package com.codingdict; public class RuntimeDemo { public static void main(String[] args) { // print a normal message System.out.println("Hello world!"); // check the number of processors available System.out.println(""+Runtime.getRuntime().availableProcessors()); } } java.lang.Long.highestOneBit() java.lang.Long.highestOneBit()