first commit

This commit is contained in:
2026-01-29 14:05:10 +05:30
commit 00b45c11a4
14 changed files with 137 additions and 0 deletions

13
ThreadExample1.java Normal file
View File

@@ -0,0 +1,13 @@
public class ThreadExample1 extends Thread{
public void run(){
int a = 0;
int b = 12;
int result = a + b;
System.out.println("Thread is running");
System.out.println("Sum of two numbers is: " + result);
}
public static void main(String args[]){
ThreadExample1 t1 = new ThreadExample1();
t1.start();
}
}