Getting Skilled with Java (M. Rashid Raza) (Z-Library)

Author: M. Rashid Raza

Java

No Description

📄 File Format: PDF
💾 File Size: 4.3 MB
39
Views
0
Downloads
0.00
Total Donations

📄 Text Preview (First 20 pages)

ℹ️

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

📄 Page 1
(This page has no text content)
📄 Page 2
Getting Skilled with Java Learn Java Programming from Scratch with Realistic Applications and Problem Solving Programmes M Rashid Raza www.bpbonline.com
📄 Page 3
FIRST EDITION 2022 Copyright © BPB Publications, India ISBN: 978-93-91392-499 All Rights Reserved. No part of this publication may be reproduced, distributed or transmitted in any form or by any means or stored in a database or retrieval system, without the prior written permission of the publisher with the exception to the program listings which may be entered, stored and executed in a computer system, but they can not be reproduced by the means of publication, photocopy, recording, or by any electronic and mechanical means. LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY The information contained in this book is true to correct and the best of author’s and publisher’s knowledge. The author has made every effort to ensure the accuracy of these publications, but publisher cannot be held responsible for any loss
📄 Page 4
or damage arising from any information in this book. All trademarks referred to in the book are acknowledged as properties of their respective owners but BPB Publications cannot guarantee the accuracy of this information. www.bpbonline.com
📄 Page 5
Dedicated to My beloved Parents M Sarmad Mazda Tabassum & My family and friends
📄 Page 6
About the Author Mohammad Rashid Raza is a software developer with a wide range of interests in fields such as microservices, information theory, basic programming, systems and architecture, and distributed systems. He has worked on numerous projects in web application and software development fields as a full-stack developer in various domains like CGP, CMS, Education, Payments and Finance, Airlines, and Travel. He earned his Bachelor’s Degree in Political Science from the University of Delhi, New Delhi and a Master’s degree in Computer Applications from the Indira Gandhi National Open University, New Delhi. He has earned certifications from Adobe on Adobe Experience Manager developer and architect, from Microsoft on Microsoft .Net framework developer. He is a regular blogger (at and is a computer programming education enthusiast.
📄 Page 7
About the Reviewers Rati Mehra is a Java architect with 12 years of extensive experience in Java technologies and designing web world solutions and architectures. Rati completed her Bachelor’s degree in Technology from Amity University, Noida, and her Master’s from Symbiosis, Pune. With nine years of experience in the IT industry, Amritpal Singh is an enthusiast in Full Stack Development. He is currently working for Larsen & Toubro Infotech as a Project Lead. His skills in Web Application, Backend Application, Middleware Application, Cloud and many more has seen him grow as a Java Full Stack Development expert. Amritpal Singh has earlier worked for top IT companies like HCL Technologies, Tech Mahindra , Cognizant Technologies and has contributed to top client projects such as American Airlines, USA Bank, Walmart, Nokia and Citibank. He has explored himself as a writer with his book Affinity. He is mentoring and playing a role of Interview Panelist for hiring new talent. Amrit is also a contributor on Stack Overflow. He now focuses on channeling his knowledge into open source projects and sharing with the community by mentoring, creating POCS, running workshops, writing blogs to
📄 Page 8
help make the world a better and more developed place. Neha Sehdev has a Bachelor’s Degree in Computer Applications from Guru Nanak Dev University and Master’s in Computer Applications from Punjab Technical University. Neha has 8 years of teaching experience in Computer Science and programming and has a true passion to work with young learners. Neha likes to use her skills to help children progress in all areas of development. Apart from teaching, Neha is also passionate about writing articles and blogs and has also contributed to many primary school books. Neha enjoys reading, cooking, listening to music, spending time with friends and family and also watching horror stories.
📄 Page 9
Acknowledgement There are a few people whom I want to thank for the continued and ongoing support they have given me during the writing of this book. First and foremost, I would like to thank my parents for all their effort and support and my friends who encouraged me to write this book. I am grateful to my mentors who also helped me to learn and guided me to skill myself in Java programming and other computer and internet technologies. I am thankful for the excellent online release notes and Java docs provided by Oracle and Java bloggers to understand the product and new features in-depth. My gratitude also goes to the team at BPB Publications for being supportive enough and providing me ample time to draft the book and guiding me throughout the publishing process. The whole team of BPB, including the technical reviewers (Amrit, Neha, and Rati) were instrumental in getting the book in much better shape than I could have ever managed.
📄 Page 10
Preface This book covers the high-level computer programming language Java, starting from fundamentals of computer programming to advanced level of programming concepts using core Java programs. The key focus is on guiding a beginner or developer to learn Java programming from scratch and implement different classes, objects, and libraries of Java while writing the code. This book focuses on some of the most frequently used object-oriented design patterns and their implementation using Java. The book describes the theoretical concepts of every module of Java, that is required to write a program and also the analytical part that helps to apply the right features of Java to convert the requirement into a Java program. The book also demonstrates the setup of the machine for Java development and the installation guide for the java software development kit, that is Java development kit (JDK). Every chapter has examples and sample programs that help to understand the concept with the actual implementation, followed by quite a few challenging questions, exercises, and problems to create an opportunity for the readers to test the skills they have learned.
📄 Page 11
This book starts with the introduction and history of programming in chapter In this chapter, we will discuss the types of computer programming such as high-level and low-level programming. We will also explore the history of Java programming. We will learn about the JDK and its module that is required to run Java in our machine. In chapter we will study about the software required to run Java on the computer and how to prepare our machine to write and run a program in the Java language. We have provided step-by-step details for installing JDK and setting up the environment variable. In chapter we will discuss the foundation of high- level Java programming. We will learn to create a Java file and declare the classes and methods. We will also discuss the use of packages and access specifiers along with the creation of variables in Java using various data types. In chapter we will discuss the types of constructors and how to create a constructor. We will also understand the use of constructors and their relation with parent and child class.
📄 Page 12
In chapter we will learn about the static keyword and the use of static keywords with variables, objects, code blocks, and classes in Java. We will also learn in detail about the advantages of static keywords. In chapter we will learn to work on String objects and String data types and use different types of String classes and their methods to manipulate or control the String data. In chapter we will discuss how to manage the list of data or multiple values of the same data type using a single variable. Also, we will learn to create a fixed list of constant data. Here, we will talk about Array and Enum types of objects. In chapter we will learn decision-making skills, or how to set conditions before executing any statement and then based on the conditions, execute the set of statements in Java programming. Also, we will study iteration or looping to read and write the data from or into a list, or perform or run a block of code or statement multiple times, again based on condition.
📄 Page 13
In chapter we will study casting and wrapping variables into classes using wrapper classes, and also learn how to make the code type-safe using generics to avoid run time errors in the program. In chapter we will study about the main feature of programming that is object-oriented programming which helps a developer to choose the right approach of programming while designing the solution. Here, we will learn all the approaches of OOPs programming using Encapsulation, abstraction, inheritance, and polymorphism. In chapter we will study how to handle runtime errors in our program and application. This is a very important feature that a developer should follow to keep the application active even after receiving incorrect or bad data or information. Handling exceptions and errors help us to handle the situations of invalid and bad data or object and also helps to perform some additional activities to move the flow of the program in a different direction. In chapter we will learn how to manage a group of data in Java Collection. This is an advanced feature
📄 Page 14
of Java programming that we use to handle a group of data and manipulate the data using various Java collection classes and interfaces. Also, we will discuss the collections class and its method that help write the program. In chapter we will read about serialization and deserialization, that is, storing data into a file and reading data from a file. Here, we will learn about different classes and approaches to read and write and handle different types of files (for example, JSON, XML, TXT, XLS, CSV). In chapter we will learn how we can utilize the CPU and execute multiple programs simultaneously or execute the same program in chunks by splitting the parts of the program into the smallest execution units using Thread. We will also practice the creation of Thread and how to split and run our program in chunks. In chapter we will see how we can create a bridge between our Java program or application and database (SQL or NoSQL). We will learn how to establish connectivity with any database management system and get and set data from Java applications. We will discuss various libraries
📄 Page 15
and classes that are being used to perform all these in Java. In chapter we will take a deep dive into Java managing memory and see how Java manages the memory of our machine. Java has an inbuilt feature which is called garbage collection to take care of the memory which is responsible for allocation and deallocation of memory of Java objects and keeping our program or application active without any memory leakage.
📄 Page 16
Code Bundle and Coloured Images Please follow the link to download the Code Bundle and the Coloured Images of the book: https://rebrand.ly/034fe8 The code bundle for the book is also hosted on GitHub at In case there’s an update to the code, it will be updated on the existing GitHub repository. We have code bundles from our rich catalogue of books and videos available at Check them out! Errata We take immense pride in our work at BPB Publications and follow best practices to ensure the accuracy of our content to provide with an indulging reading experience to our subscribers. Our readers are our mirrors, and we use their inputs to reflect and improve upon human errors, if any, that may have occurred during the
📄 Page 17
publishing processes involved. To let us maintain the quality and help us reach out to any readers who might be having difficulties due to any unforeseen errors, please write to us at : errata@bpbonline.com Your support, suggestions and feedbacks are highly appreciated by the BPB Publications’ Family. Did you know that BPB offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.bpbonline.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at: business@bpbonline.com for more details. At you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on BPB books and eBooks.
📄 Page 18
(This page has no text content)
📄 Page 19
Piracy If you come across any illegal copies of our works in any form on the internet, we would be grateful if you would provide us with the location address or website name. Please contact us at business@bpbonline.com with a link to the material. If you are interested in becoming an author If there is a topic that you have expertise in, and you are interested in either writing or contributing to a book, please visit We have worked with thousands of developers and tech professionals, just like you, to help them share their insights with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea. Reviews
📄 Page 20
Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions. We at BPB can understand what you think about our products, and our authors can see your feedback on their book. Thank you! For more information about BPB, please visit
The above is a preview of the first 20 pages. Register to read the complete e-book.

💝 Support Author

0.00
Total Amount (¥)
0
Donation Count

Login to support the author

Login Now
Back to List