Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Java Programming Complete Beginners Course Bootcamp, Cheat Sheet of Database Management Systems (DBMS)

This report provides an overview of a Java programming bootcamp for beginners. It covers the objectives, including learning Java application design, data structures, object types, control structures, file I/O, and object-oriented programming. The report also introduces Java, highlighting its platform-independence, object-orientation, robustness, and security, as well as its widespread use and high demand for skilled developers.

Typology: Cheat Sheet

2021/2022

Uploaded on 11/17/2022

unknown user
unknown user 🇮🇳

1 document

1 / 24

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Internship Report
“Java Programing Complete Beginners Course Bootcamp”
Submitted in the partial fulfillment for the award of the degree
of Bachelor of Technology
In
Computer Science & Engineering
Submitted to
Submitted to Submitted By:
Prof. Chetan Gupta AP CSE Mohit Yadav
Prof. Kiran Pachlasiya AP CSE 0133CS201113
HOD CSE
Dr. Ritu Shrivastava
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Java Programming Complete Beginners Course Bootcamp and more Cheat Sheet Database Management Systems (DBMS) in PDF only on Docsity!

Internship Report “Java Programing Complete Beginners Course Bootcamp” Submitted in the partial fulfillment for the award of the degree of Bachelor of Technology In Computer Science & Engineering Submitted to Submitted to (^) Submitted By: Prof. Chetan Gupta AP CSE (^) Mohit Yadav Prof. Kiran Pachlasiya AP CSE (^) 0133CS HOD CSE Dr. Ritu Shrivastava

ACKNOWLEDGEMENT I take this opportunity to express my sincere gratitude to all those who have been helpful in the successful completion of my internship. I would like to show my greatest appreciation to the highly esteemed and devoted technical staff, supervisors of “Sheryians Coding School”. I am highly indebted to them for their tremendous support and help during the completion of my internship. My special thanks goes to ‘Sheryians Coding School for accepting my request for Internship and giving me an opportunity to be a trainee of “Sheryians Coding School”. I would like to thank to all those people who directly or indirectly helped and guided me to complete my training , including the following instructors and technical officers of various section. I am especially thankful to Dr. Rajiv Srivastava, Director (SIRT, Bhopal) for his kind co-operation and rendering me all possible facilities. I express my thanks to Dr. Ritu Shrivastava HOD Computer Science & Engineering dept. SIRT Bhopal for kind support. I am thankful to all staff members of the CSE department and my friends for their timely help co- operation and suggestions during my work. Lastly but not the least, I must express thanks to my family, without their moral support it was impossible for me to complete this work. Mohit Yadav 0133CS 3

Table of Contents Page No Certificate Declaration Acknowledgement Objective of Internship Company Profile Introduction Technology/Tools Used in internship Brief Description of Project Conclusion

COMPANY PROFILE Address: 23-B, near Chai Sutta Bar, Sector C, Indrapuri, Bhopal, Madhya Pradesh 462021 10K learners

INTRODUCTION

JAVA was developed by James Gosling at Sun Microsystems Inc in the year 1995, later acquired by Oracle Corporation. It is a simple programming language. Java makes writing, compiling, and debugging programming easy. It helps to create reusable code and modular programs. Java is a class-based, object-oriented programming language and is designed to have as few implementation dependencies as possible. A general-purpose programming language made for developers to write once run anywhere that is compiled Java code can run on all platforms that support Java. Java applications are compiled to byte code that can run on any Java Virtual Machine. The syntax of Java is similar to c/c++. History: Java’s history is very interesting. It is a programming language created in 1991. James Gosling, Mike Sheridan, and Patrick Naughton, a team of Sun engineers known as the Green team initiated the Java language in 1991. Sun Microsystems released its first public implementation in 1996 as Java 1.0. It provides no-

Father of Java. Currently, Java is used in mobile devices, internet programming, games, e-business, etc. Java programming language is named JAVA. Why? After the name OAK, the team decided to give a new name to it and the suggested words were Silk, Jolt, revolutionary, DNA, dynamic, etc. These all names were easy to spell and fun to say, but they all wanted the name to reflect the essence of technology. In accordance with James Gosling, Java the among the top names along with Silk, and since java was a unique name so most of them preferred it. Java is the name of an island in Indonesia where the first coffee(named java coffee) was produced. And this name was chosen by James Gosling while having coffee near his office. Note that Java is just a name, not an acronym. Java Terminology Before learning Java, one must be familiar with these common terms of Java.

  1. Java Virtual Machine(JVM): This is generally referred to as JVM. There are three execution phases

of a program. They are written, compile and run the program. Writing a program is done by a java programmer like you and me. The compilation is done by the JAVAC compiler which is a primary Java compiler included in the Java development kit (JDK). It takes the Java program as input and generates bytecode as output. In the Running phase of a program, JVM executes the bytecode generated by the compiler. Now, we understood that the function of Java Virtual Machine is to execute the bytecode produced by the compiler. Every Operating System has a different JVM but the output they produce after the execution of bytecode is the same across all the operating systems. This is why Java is known as a platform- independent language.

  1. Bytecode in the Development process: As discussed, the Javac compiler of JDK compiles the java source code into bytecode so that it can be executed by JVM. It is saved as .class file by the compiler. To view the bytecode, a disassembler like javap can be used.

used for a long time. Because Garbage cannot recover the memory of objects being referenced.

  1. ClassPath: The classpath is the file path where the java runtime and Java compiler look for .class files to load. By default, JDK provides many libraries. If you want to include external libraries they should be added to the classpath. Primary/Main Features of Java
  2. Platform Independent: Compiler converts source code to bytecode and then the JVM executes the bytecode generated by the compiler. This bytecode can run on any platform be it Windows, Linux, or macOS which means if we compile a program on Windows, then we can run it on Linux and vice versa. Each operating system has a different JVM, but the output produced by all the OS is the same after the execution of bytecode. That is why we call java a platform-independent language.
  3. Object-Oriented Programming Language: Organizing the program in the terms of collection of objects is a way of object-oriented programming, each of which represents an instance of the class.

The four main concepts of Object-Oriented programming are: Abstraction Encapsulation Inheritance Polymorphism

  1. Simple: Java is one of the simple languages as it does not have complex features like pointers, operator overloading, multiple inheritances, and Explicit memory allocation.
  2. Robust: Java language is robust which means reliable. It is developed in such a way that it puts a lot of effort into checking errors as early as possible, that is why the java compiler is able to detect even those errors that are not easy to detect by another programming language. The main features of java that make it robust are garbage collection, Exception Handling, and memory allocation.
  3. Secure: In java, we don’t have pointers, so we cannot access out-of-bound arrays i.e it shows ArrayIndexOutOfBound Exception if we try to do so. That’s why several security flaws like stack corruption or buffer overflow are impossible to

runtime and at some time java uses Just In Time (JIT) compiler where the compiler compiles code on-demand basics where it only compiles those methods that are called making applications to execute faster.

  1. Dynamic flexibility: Java being completely object-oriented gives us the flexibility to add classes, new methods to existing classes and even create new classes through sub-classes. Java even supports functions written in other languages such as C, C++ which are referred to as native methods.
  2. Sandbox Execution: Java programs run in a separate space that allows user to execute their applications without affecting the underlying system with help of a bytecode verifier. Bytecode verifier also provides additional security as its role is to check the code for any violation of access.
  3. Write Once Run Anywhere: As discussed above java application generates a ‘.class’ file which corresponds to our applications(program) but contains code in binary format. It provides ease t architecture-neutral ease as bytecode is not dependent on any machine architecture. It is the

primary reason java is used in the enterprising IT industry globally worldwide.

  1. Power of compilation and interpretation: Most languages are designed with purpose either they are compiled language or they are interpreted language. But java integrates arising enormous power as Java compiler compiles the source code to bytecode and JVM executes this bytecode to machine OS- dependent executable code. Example // Importing classes from packages import java.io.*; // Main class public class GFG { // Main driver method public static void main(String[] args) { // Print statement System.out.println("Welcome to GeeksforGeeks"); }

of the class. Class GFG has only one method Main in JAVA.

  1. static void Main(): static keyword tells us that this method is accessible without instantiating the class.
  2. void: keywords tell that this method will not return anything. The main() method is the entry point of our application.
  3. System.in: This is the standard input stream that is used to read characters from the keyboard or any other standard input device.
  4. System.out: This is the standard output stream that is used to produce the result of a program on an output device like the computer screen.
  5. println(): This method in Java is also used to display text on the console. It prints the text on the console and the cursor moves to the start of the next line at the console. The next printing takes place from the next line.
  6. String []args: This is the argument passed to the main function which is an array of strings with the

array name args. One can choose their own flexible name but this name is used by many developers. Everything in java , is represented in Class as an object including the main function.