-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemo.java
More file actions
51 lines (36 loc) · 699 Bytes
/
Demo.java
File metadata and controls
51 lines (36 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import java.util.Scanner;
class A
{
void abc()
{
System.out.print("NAme : ");
Scanner sc=new Scanner(System.in);
String name =sc.next();
System.out.println("NAme : "+name );
}
}
class Demo
{
public static void main(String args[])
{
A a =new A();
a. abc();
}
}
JDK
dev (lib )
run
JDK = lib + JRE
JRE = ony we can run + JVM
JVM =
load the class fils
verfiy the code
execute the code
C++ ---------------------> C# (paid )
==============> java (free ) : security
------------------------> Python (free ) : we have but not like java ()
SC SC
compile
compiler
Bytecode (.class )
interpeter interpeter