{"id":20356569,"url":"https://github.com/madhurimarawat/java-programming","last_synced_at":"2025-03-04T17:34:03.687Z","repository":{"id":193332342,"uuid":"688590848","full_name":"madhurimarawat/Java-Programming","owner":"madhurimarawat","description":"This repository contains programs in the Java programming language.","archived":false,"fork":false,"pushed_at":"2023-10-19T17:19:28.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T01:16:53.540Z","etag":null,"topics":["basic-programs","conditional-statements","exception-handling","inheritance","java","loops","object-oriented-programming","variables"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madhurimarawat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-07T17:05:07.000Z","updated_at":"2023-09-23T13:55:32.000Z","dependencies_parsed_at":"2023-10-13T09:24:28.459Z","dependency_job_id":"dde233a5-cde6-48c4-8102-80d3895e2704","html_url":"https://github.com/madhurimarawat/Java-Programming","commit_stats":null,"previous_names":["madhurimarawat/java-programming"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FJava-Programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FJava-Programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FJava-Programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FJava-Programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhurimarawat","download_url":"https://codeload.github.com/madhurimarawat/Java-Programming/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241890271,"owners_count":20037675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic-programs","conditional-statements","exception-handling","inheritance","java","loops","object-oriented-programming","variables"],"created_at":"2024-11-14T23:17:03.864Z","updated_at":"2025-03-04T17:34:03.660Z","avatar_url":"https://github.com/madhurimarawat.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java-Programming\nThis repository contains programs in the Java programming language.\u003cbr\u003e\u003cbr\u003e\n\n\u003cimg src=\"https://images.idgesg.net/images/article/2019/05/java_binary_code_gears_programming_coding_development_by_bluebay2014_gettyimages-1040871468_2400x1600-100795798-large.jpg?auto=webp\u0026quality=85,70\" height =450 \u003e\n\n---\n# About Java Programming\n--\u003e Java is a widely-used, high-level, object-oriented programming language.\u003cbr\u003e\u003cbr\u003e\n--\u003e Known for its platform independence, which allows programs to run on any platform with a Java Virtual Machine (JVM).\u003cbr\u003e\u003cbr\u003e\n--\u003e Originally developed by James Gosling at Sun Microsystems (now owned by Oracle Corporation).\u003cbr\u003e\u003cbr\u003e\n--\u003e Java code is typically written in text files with a .java extension.\n\n---\n# Mode of Execution Used:  \u003cimg src=\"https://code.visualstudio.com/assets/images/code-stable.png\" title=\"Visual Studio Code\" alt=\"Visual Studio Code\" width=\"40\" height=\"40\"\u003e \u0026nbsp; \u003cimg src=\"https://github.com/madhurimarawat/Java-Programming/assets/105432776/21fbc4f4-3bb0-4ea9-95b7-e5a7e52d6f93\" title=\"JDK\" alt=\"JDK\" width=\"50\" height=\"40\"\u003e\n\n\u003ch2\u003eVisual Studio Code\u003c/h2\u003e\n--\u003e Visit the official website:\u0026nbsp; \u003ca href=\"https://code.visualstudio.com/download\"\u003e\u003cimg src=\"https://code.visualstudio.com/assets/images/code-stable.png\" title=\"Visual Studio Code\" alt=\"Visual Studio Code\" width=\"30\" height=\"30\"\u003e\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n--\u003e Download according to the platform that will be used like Linux, Macos or Windows.\u003cbr\u003e\u003cbr\u003e\n--\u003e Follow the setup wizard.\u003cbr\u003e\u003cbr\u003e\n--\u003e Create a new file with the extention of .java and then this file can be executed using java.\u003cbr\u003e\n\u003ch2\u003eJava\u003c/h2\u003e\n--\u003e Visit the official website of Java: https://www.java.com/en/ \u003cbr\u003e\u003cbr\u003e\n--\u003e Download according to the platform that is going to be used.\u003cbr\u003e\u003cbr\u003e\n--\u003e After downloading, load the executble file and follow along the process.\u003cbr\u003e\n\u003ch2\u003eJava Developement Kit\u003c/h2\u003e\n--\u003e Visit the official website of Oracle: https://www.java.com/en/](https://www.oracle.com/java/technologies/downloads/ \u003cbr\u003e\u003cbr\u003e\n--\u003e Download according to the platform that is going to be used.\u003cbr\u003e\u003cbr\u003e\n--\u003e After downloading, load the executable file and follow along the process.\n\n---\n# Executing Java Code\n--\u003e Open the command prompt in the working directory of java code file.\u003cbr\u003e\u003cbr\u003e\n--\u003e First the java code file is executed using java compiler with the following command:-\n\n```\njavac java-codefile.java\n```\nwhere java-codefile.java is the name of java code file. Make sure the name of class and code file is same else it gives error.\u003cbr\u003e\u003cbr\u003e\n--\u003e Now if this will run successfully a class file with the same name as code file will be saved in the directory.\u003cbr\u003e\u003cbr\u003e\n--\u003e Now run the following command to get output :-\n```\njava java-codefile\n```\nwhere java-codefile.java is the name of java code file. Also we do not need to mention extention here.\n\n---\n\n# Java Programming Features\n\n  - Strongly typed and statically compiled language.\n  - Automatic memory management via garbage collection.\n  - Rich standard library and extensive ecosystem of libraries and frameworks.\n  - Multi-threading support for concurrent programming.\n  - Exception handling for robust error management.\n  - Object-oriented principles like inheritance and polymorphism.\u003cbr\u003e\u003cbr\u003e\n  \n--\u003e **Syntax and Structure**\n  - Java programs consist of classes.\n  - A class defines data (fields/variables) and methods (functions).\n  - The `public static void main(String[] args)` method is the entry point for execution.\n  - Statements end with a semicolon (`;`).\u003cbr\u003e\u003cbr\u003e\n\n--\u003e **Data Types**\n  - Primitive data types: `int`, `double`, `char`, `boolean`, etc.\n  - Reference data types: `String`, arrays, user-defined classes.\u003cbr\u003e\u003cbr\u003e\n\n--\u003e **Control Structures**\n  - `if`, `else if`, and `else` for conditional branching.\n  - `for`, `while`, and `do-while` for loops.\n  - `switch` for multi-branch decision-making.\u003cbr\u003e\u003cbr\u003e\n\n--\u003e **Object-Oriented Programming**\n  - Classes and objects for code organization.\n  - Inheritance, encapsulation, and polymorphism principles.\n  - Constructors and destructors.\u003cbr\u003e\u003cbr\u003e\n\n--\u003e **Exception Handling**\n  - `try`, `catch`, `finally` blocks for error handling.\n  - Throwing and catching exceptions.\u003cbr\u003e\u003cbr\u003e\n\n--\u003e **Garbage Collection**\n  - Automatic memory management for freeing unused objects.\n  - Helps prevent memory leaks leading to better memory management.\u003cbr\u003e\u003cbr\u003e\n  \n--\u003e **Platform Independence**\n  - Compiled Java bytecode runs on any platform with a compatible JVM(Java Virtual Machine).\n  - This makes java a platform independent programming languge.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Fjava-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhurimarawat%2Fjava-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Fjava-programming/lists"}