Change location for data files

This commit is contained in:
Kamran Ahmed committed 2023-02-21 12:25:58 +00:00
1 parent b741a0e1ee
commit b6a0255f12
2772 files changed
+30 -30

No files matched your search

@@ -0,0 +1,12 @@
# Basic Syntax
Understanding the basics is the key to a solid foundation. In this section, learn the basic terminologies, naming conventions, reserved words, conditions, functions, data structures, OOP, packages, etc.
* To print output use --> System.out.println();
* To take input from user --> Scanner or BufferedReader class can be used
Visit the following resources to learn more:
- [Basic Java Syntax](https://www.geeksforgeeks.org/java-basic-syntax/)
- [Java - Basic Syntax](https://www.youtube.com/watch?v=81piDKqPxjQ)
- [Java Tutorial for Beginners](https://www.youtube.com/watch?v=RRubcjpTkks)
@@ -0,0 +1,13 @@
# Data Types and Variables
Variable in Java is a data container that stores the data values during Java program execution. Every variable is assigned a data type, which designates the type and quantity of values it can hold. Variable is a memory location name of the data. The Java variables have mainly three types: Local, Instance and Static.
Data Types are divided into two group -
* Primitive - byte,short,int,long,float,double,boolean and char
* Non-Primitive - String, Arrays and Classes
Visit the following resources to learn more:
- [What are Data Types & Variables?](https://www.guru99.com/java-variables.html)
- [Java Variables](https://www.javatpoint.com/java-variables)
- [Learn more about Data types and Variables](https://www.javatpoint.com/java-data-types)
@@ -0,0 +1,16 @@
# Conditionals
Java has the following conditional statements:
* Use `if` to specify a block of code to be executed, if a specified condition is true
* Use `else` to specify a block of code to be executed if the same condition is false
* Use `else if` to specify a new condition to test; if the first condition is false
* Use `switch` to specify many alternative blocks of code to be executed
* Use `?,:` operator to specify one line condition
Visit the following resources to learn more:
- [What are Conditional statements?](https://www.educative.io/answers/what-are-conditional-statements-in-programming)
- [Conditionals in Java](https://www.javatpoint.com/java-if-else)
- [Conditionals and Loops in Java](https://youtu.be/ldYLYRNaucM)
- [Switch Statements + Nested Case in Java](https://youtu.be/mA23x39DjbI)
@@ -0,0 +1,14 @@
# Functions
A method/function is a way to perform some task. Similarly, in programming like Java, a function method is a block of code written to perform a specific task repeatedly. It provides reusability of code. We write the function once and use it many times. It works on the 'DRY' principle i.e., "Do not repeat yourself".
Steps -
1. Define function - datatype function_name(parameters){body}
2. Call function - function_name(values)
Visit the following resources to learn more:
- [Methods/Functions in Java.](https://www.javatpoint.com/method-in-java)
- [What are methods or functions in Java.](https://www.geeksforgeeks.org/methods-in-java/)
- [Learn Functions/Methods in Java](https://www.w3schools.com/java/java_methods.asp)
- [Functions / Methods in Java](https://www.youtube.com/watch?v=vvanI8NRlSI)
@@ -0,0 +1,15 @@
# Datastructures
As the name indicates itself, a **Data Structure** is a way of organizing the data in the **memory** so that it can be used efficiently. Some common data structures are array, linked list, stack, hashtable, queue, tree, heap, and graph.
* Array allocates continuous memory for homogeneous data
* Linked List stores data in nodes with references
* Stack follows Last In First Out principle
* Queue follows First In First Out principle
Visit the following resources to learn more:
- [What are Data Structures?](https://www.geeksforgeeks.org/data-structures)
- [ Data Structures and Algorithms](https://www.javatpoint.com/data-structure-tutorial)
- [Java + DSA + Interview Preparation Course](https://youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ)
- [Data Structures Illustrated](https://www.youtube.com/watch?v=9rhT3P1MDHk&list=PLkZYeFmDuaN2-KUIv-mvbjfKszIGJ4FaY)
@@ -0,0 +1,18 @@
# OOP
Object-oriented programming is a core of Java Programming, which is used for designing a program using classes and objects. This can also be characterized as data controlling for accessing the code.
* [Class](https://www.javatpoint.com/object-and-class-in-java)
* [Interfaces](https://www.geeksforgeeks.org/interfaces-in-java/)
* [Object](https://www.geeksforgeeks.org/classes-objects-java/)
* [Inheritance](https://www.geeksforgeeks.org/inheritance-in-java)
* [Polymorphism](https://www.javatpoint.com/runtime-polymorphism-in-java)
* [Abstraction](https://www.softwaretestinghelp.com/what-is-abstraction-in-java/)
* [Encapsulation](https://www.programiz.com/java-programming/encapsulation)
Visit the following resources to learn more:
- [OOPs Concept in Java](https://www.geeksforgeeks.org/object-oriented-programming-oops-concept-in-java/)
- [Java OOPs Concepts](https://www.javatpoint.com/java-oops-concepts)
- [Java complete OOPs playlist](https://youtube.com/playlist?list=PL9gnSGHSqcno1G3XjUbwzXHL8_EttOuKk)
- [Java OOPs Concepts](https://www.youtube.com/watch?v=6T_HgnjoYwM)
@@ -0,0 +1,14 @@
# Files and APIs
Learn how to work with files i.e., reading, writing and deleting, files and folders, etc. Also, learn how to make API calls, parse the incoming response, and so on.
* FileWriter - this class is useful to create a file by writing characters into it
* FileReader - this class is useful to read data in form of characters from file
Visit the following resources to learn more:
- [How To Work With Files In Java](https://www.marcobehler.com/guides/java-files)
- [Java File Class](https://www.javatpoint.com/java-file-class)
- [Java.io.File Class in Java](https://www.geeksforgeeks.org/file-class-in-java/)
- [Java HttpURLConnection Example - Java HTTP Request GET, POST](https://www.digitalocean.com/community/tutorials/java-httpurlconnection-example-java-http-request-get-post)
- [5 ways to make HTTP requests in Java](https://www.twilio.com/blog/5-ways-to-make-http-requests-in-java)
@@ -0,0 +1,11 @@
# Packages
A package is a namespace that mainly contains classes and interfaces. For instance, the standard class `ArrayList` is in the package `java.util`. For this class, `java.util.ArrayList` is called its fully qualified name because this syntax has no ambiguity. Classes in different packages can have the same name. For example, you have the two classes `java.util.Date` and `java.sql.Date`, which are different. If no package is declared in a class, its package is the default package.
To create package use this command -> javac -d directory javafilename
Visit the following resources to learn more:
- [Packages in Java](https://docs.oracle.com/javase/8/docs/api/java/lang/Package.html)
- [Java Package](https://www.javatpoint.com/package)
- [Packages In Java](https://www.geeksforgeeks.org/packages-in-java/)
@@ -0,0 +1,12 @@
# Loops
In Java and other programming languages, loops are used to iterate a part of the program several times. There are four types of loops in Java, `for`, `forEach`, `while`, and `do...while`.
* Synatx of `for` loop is `for(initialization;condition;increment/decrement){}`
* Syntax of `forEach` loop is `for(data_type variable:array_name){}`
Visit the following resources to learn more:
- [What are loops in Java?](https://www.javatpoint.com/java-for-loop)
- [ Loops in Java.](https://www.programiz.com/java-programming/for-loop)
@@ -0,0 +1,13 @@
# Exception Handling
Exception Handling in Java is one of the effective means to handle the runtime errors so that the regular flow of the application can be preserved. Java Exception Handling is a mechanism to handle runtime errors such as ClassNotFoundException, IOException, SQLException, RemoteException, etc.
There are three types of exceptions -
1. Checked Exception - exceptions checked at compile time. Example - IOException
2. Unchecked Exception - exceptions checked at run time. Example - NullPointerException
3. Error - It is irrecoverable. Example - OutOfMemoryError
Visit the following resources to learn more:
- [Exception Handling - G4G](https://www.geeksforgeeks.org/exceptions-in-java/)
- [Understanding Java Exceptions](https://www.youtube.com/watch?v=W-N2ltgU-X4)
@@ -0,0 +1,16 @@
# Java Fundamentals
Java is a programming language and computing platform first released by Sun Microsystems in 1995. Java is a general-purpose, class-based, object-oriented programming language designed for having lesser implementation dependencies. It is a computing platform for application development. Java is fast, secure, and reliable, therefore. It is widely used for developing Java applications in laptops, data centers, game consoles, scientific supercomputers, cell phones, etc.
Learn about the fundamentals of Java such as basic syntax, data types, variables, conditionals, functions, data structures, packages, etc.
Visit the following resources to learn more:
- [Java Basics - W3Schools](https://www.w3schools.com/java/)
- [Java Tutorial for Beginners](https://youtu.be/eIrMbAQSU34)
- [Java + DSA + Interview Preparation Course (For beginners)](https://youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ)
- [Head First Java](https://www.amazon.co.uk/Head-First-Java-3rd-Brain-Friendly/dp/1491910771)
- [Thinking in Java](https://www.amazon.co.uk/Thinking-Java-Eckel-Bruce-February/dp/B00IBON6C6)
- [Effective Java](https://www.amazon.com/Effective-Java-Joshua-Bloch/dp/0134685997)
- [Java: A Beginners Guide](https://www.amazon.co.uk/Java-Beginners-Guide-Herbert-Schildt/dp/1260463559)
- [Java: The Complete Reference](https://www.amazon.co.uk/gp/product/B09JL8BMK7/ref=dbs_a_def_rwt_bibl_vppi_i2)