Java Introduction
Java Introduction
]
Data type of C: int 2 byte windows, Linux 4 byte
https://www.geeksforgeeks.org/difference-between-compiler-and-interpreter/
* Simple :- knowledge of c
* Secure :- Virus & important data
* Portable :- bytecode which is executed with the help of jvm
* Object-oriented: Java is a Pure OOPs
* Robust :- Strong
- checks for errors at compile time. // c lang int
pi=3.14;
- memory management mistakes and
https://www.digitalocean.com/community/tutorials/java-heap-space-vs-stack-memory
pw: Gone@1992#
3) Micro Edition -> develop software for electronics devices such as cell
phone, palm computers, etc.
<java home>
|
|-<bin>-- [ javac.exe, java.exe,
appletviewer.exe, ]
|-<jre><lib>-- rt.jar , ...
|-<include>
|-<lib>
Testing: javac
- information about javac tool
- error :C:\>javac
'javac' is not recognized as an internal or external
command,
operable program or batch file.
Save as : "Test.java" or
Test.java select save as type : all files
Compile: javac Test.java
Run: java Test
The name you give to a source file is very important. For this example, the name
of the source file should be Test.java.
public : means you want to access main() from outside the class Test
(i.e. from command prompt)
static : without creating object of class Test.
void : no return statment