https://www.guru99.com/install-eclipse-java.html
Java The Complete Reference, Eighth Edition
https://www.programiz.com/java-programming
- simple, high level, robust, object-oriented, multithreaded, platform independent and secure programming language.
- was developed by Sun Microsystems, now owned by Oracle.
- James Gosling is known as the father of Java.
- Compilation: Parsing, Process Annotations, Flow, Generates Bytecode (.class file)
- Execution: ClassLoader(The main class is loaded into the memory bypassing its ‘.class’ file to the JVM), Bytecode Verifier(job is to check that the instructions don’t perform damaging actions), Just-In-Time Compiler(job is to convert the loaded bytecode into machine code)
Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (Java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), and other tools needed in Java development.
JRE stands for “Java Runtime Environment”. It provides the minimum requirements for executing a Java application; it consists of the Java Virtual Machine (JVM), core classes, and supporting files.
JVM is responsible for executing the java program line by line, hence it is also known as an interpreter.
- Java is case sensitive
- Java execution starts with main() method.
- main() method should have signature as
public static void main(String args[])
- A method is overridden, not the data members, so runtime polymorphism can't be achieved by data members.
- You can not use super keyword in the static method/block.
- this() can be used to invoke current class constructor.
- Precedence Table: https://www.programiz.com/java-programming/operator-precedence#:~:text=Associativity%20of%20Operators%20in%20Java,is%20assigned%20to%20variable%20b%20
- Difference between Scanner and BufferedReader: https://www.geeksforgeeks.org/difference-between-scanner-and-bufferreader-class-in-java/
- Locate the file and make sure you are in the same folder in which file is located.
- Run
javac File.java
. This will compile and create the bytecode of the program (.class) - After compiling the program, run
java File
command.
https://www.edureka.co/blog/wp-content/uploads/2019/08/2019-08-06-12_31_29-Window.png
https://dotnettrickscloud.blob.core.windows.net/img/oops/types-of-inheritance-c-sharp.png
https://static.javatpoint.com/images/core/interfacerelation.jpg
https://media.geeksforgeeks.org/wp-content/cdn-uploads/Access-Modifiers-in-Java.png