FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-Programs/Thread1.java at main · shwetaodel/Java-Programs · GitHub
shwetaodel
/
Java-Programs
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-Programs
/
Thread1.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (13 loc) · 400 Bytes
Breadcrumbs
Java-Programs
/
Thread1.java
Copy path
File metadata and controls
21 lines (13 loc) · 400 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package
core
;
public
class
Thread1
extends
Thread
{
public
static
void
main
(
String
[]
args
) {
Thread1
thread
=
new
Thread1
();
thread
.
start
();
System
.
out
.
println
(
"code outside the thread"
);
}
public
void
run
() {
System
.
out
.
println
(
"code inside the thread"
);
}
}
//there are two ways to create thread
//1=by extending Thread class and overriding its run() method
Back
|
FazBrowse Home
|
New Git URL