public class Main { public static void main(String[] args) { Runnable r = new Runnable1(); Thread t = new Thread(r); t.start(); Runnable r2 = new Runnable2(); Thread t2 = new Thread(r2); t2.start(); } } class Runnable2 implements Runnable{ public void run(){ for(int i=1;i<=20;i++){ if(i%2 == 1) SRead more
public class Main {
public static void main(String[] args) {
Runnable r = new Runnable1();
Thread t = new Thread(r);
t.start();
Runnable r2 = new Runnable2();
Thread t2 = new Thread(r2);
t2.start();
}
}
class Runnable2 implements Runnable{
public void run(){
for(int i=1;i<=20;i++){
if(i%2 == 1)
System.out.println(i);
}
}
}
class Runnable1 implements Runnable{
public void run(){
for(int i=1;i<=20;i++){
if(i%2 == 0)
System.out.println(i);
}
}
}
Java is a programming language and a platform. It is a high level, robust, object-oriented and secure programming language. Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in early 1991. James Gosling is known as the father of Java. Before Java, its name was Oak. SinceRead more
Java is a programming language and a platform. It is a high level, robust, object-oriented and secure programming language.
Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in early 1991. James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already a registered company, so James Gosling and his team changed the Oak name to Java.
Application of Java:
Java is currently used vastly in many devices. Some of its application are as followed-
Desktop Applications such as acrobat reader, media player, antivirus, etc.
Mobile Applications
Embedded System
Gaming Applications
Web-based Applications
Enterprise Applications such as banking applications
Cloud-based Applications
Robotics, etc.
How Java Works
First Java is compiled into bytecode and then it is interpreted to machine code.
Gauss elimination
Download the Attachment.
Download the Attachment.
See lessWrite a program in PL/SQL to print the value of a variable inside and outside a loop using LOOPEXIT statement.
Download the attachment for answer.
Download the attachment for answer.
See lessWrite a program in PL/SQL to check whether a number is prime or not using goto statement with for loop.
DOWNLOAD ATTACHMENT FOR ANSWER
DOWNLOAD ATTACHMENT FOR ANSWER
See lessCreate two threads, one thread to display all even numbers between 1 & 20-java
public class Main { public static void main(String[] args) { Runnable r = new Runnable1(); Thread t = new Thread(r); t.start(); Runnable r2 = new Runnable2(); Thread t2 = new Thread(r2); t2.start(); } } class Runnable2 implements Runnable{ public void run(){ for(int i=1;i<=20;i++){ if(i%2 == 1) SRead more
public class Main {
public static void main(String[] args) {
Runnable r = new Runnable1();
Thread t = new Thread(r);
t.start();
Runnable r2 = new Runnable2();
Thread t2 = new Thread(r2);
t2.start();
}
}
class Runnable2 implements Runnable{
public void run(){
for(int i=1;i<=20;i++){
if(i%2 == 1)
System.out.println(i);
}
}
}
class Runnable1 implements Runnable{
See lesspublic void run(){
for(int i=1;i<=20;i++){
if(i%2 == 0)
System.out.println(i);
}
}
}
What is Java?
Java is a programming language and a platform. It is a high level, robust, object-oriented and secure programming language. Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in early 1991. James Gosling is known as the father of Java. Before Java, its name was Oak. SinceRead more
Java is a programming language and a platform. It is a high level, robust, object-oriented and secure programming language.
Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in early 1991. James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already a registered company, so James Gosling and his team changed the Oak name to Java.
Application of Java:
Java is currently used vastly in many devices. Some of its application are as followed-
How Java Works
First Java is compiled into bytecode and then it is interpreted to machine code.