https://codepen.io/iamsagarbha/pen/xjMymB
Generating Custom Java class using JavaScript with Underscore Template and JSON Data :
https://codepen.io/iamsagarbha/post/testpost
https://liveweave.com/M8unj6
Why wait,notify,notifyall are part of object and not thread class?
How to create mutable class. A has B. A is immutable and B is mutable. So can we say A is immutable?
What is difference between synchronized method and synchronized block.Which one to use at what requirements?
S
Method 1:
By extending thread class and creating new object of child of thread and calling start() method
class Mythread extends Thread
Method 2:
By implementing Runnable interface by a class and passing it to thread class and calling start method
class Mythread2 implements Runnable {
run(){}
}
Thread t = new Thread(new Mythread2());
t.start();
JAVA_HOME : Set to a location of jdk folder
JRE_HOME : Set to a location of jre folder inside jdk
Add %JAVA_HOME%/bin to path variable
JAVA_HOME : Set to a location of jdk folder
JRE_HOME : Set to a location of jre folder inside jdk
Add %JAVA_HOME%/bin to path variable