Skip to content

sy0097/Java-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Java-notes

14th batch for my refernece 🧗‍♂️ ATB 14x Plan(3-4 Months)  Private SDETclub Paid - www.sdetclub.com/c/atb14x-only/

Support : forms.gle/biMoz1KW19DLj7i28

Email - contact@thetestingacademy.com



Topics and Roadmap

 tinyurl.com/roadmap-sdet  https://sdet.live/atbtracker  https://sdet.live/atbtopics 

Step 1- Introduce here - www.sdetclub.com/c/atb14x-only/task-31-aug-introduce-yourself

Step 2 - Threads in the - www.sdetclub.com/c/atb14x-only/



LIVE Class Link

Live Class Time and Dates- Date : - 9 AM (Sat, Sun) Email - contact@thetestingacademy.com WhatsApp community - Reminders SDETclub 14x -> Announcement 

Action Plan for the 3-4 Months  track.thetestingacademy.com/ 



How to access the courses ? (Recordings) | How do we see the recordings?  courses.thetestingacademy.com/courses/14x-live-job-ready-automation-tester-blueprint-with-java-by-pramod-dutta-14x/dashboard 



How to Ask the doubts  www.sdetclub.com/c/atb14x-only/

 www.sdetclub.com/c/atb14x-only/doubts-31-aug-anything-regarding-career





SDET Masterclass 8 pm -> Share the Email - LIVE Generative AI Part1, Part 2 (3,4 Spet 8 PM) Job and Referrals - Job Referrals Create your Profile.  www.sdetclub.com/c/jobs-and-referral/ Add photo -> Attendance  forms.gle/YuhTLeNC73po2Ep27 Bonus Course Material 

Bonus Course Material SDET Club Masterclass  courses.thetestingacademy.com/courses/sdet-club-masterclasses-1337/contents/66bff9b0a1deb Gen AI course (Recorded)  courses.thetestingacademy.com/courses/gen-ai/dashboard SQL Masterclass - watch it before -> Interview 2 days  courses.thetestingacademy.com/courses/learn-sql/dashboard 



How to see the recording :- https://www.loom.com/share/f52b39bc9095470ea0902075fe169e26?sid=564ed0c2-74ee-45c8-9acb-a6477b9669eb 



Important FQA How to get Support? Direct WhatsApp for Enrolled This Week Task Sequence to follow Required Access Form Tips and Tricks to Search Job  www.sdetclub.com/c/resources/tips-and-tricks-to-search-job 



How to access the courses ? (Recordings) 



 Week Task 3, 4 Sept - Gen AI Session - DO attend Manual Testing Refresher - Part 1, Part 2 - ( Eveyone has to finish it) 

 Sequence to follow Manual Testing Refresher (Class) ->. ( This Week) Java ( Github.com + Coding Ex) (Zero Knowledge) -> 250 Exp - Github.com 45 Days API Testing (Manual Testing) , Postman -> API Testing Rest Assured( Automation) -> API Automation Framework -> (Maven, TestNG, Allure Report, ...) 100 Program + Framwork Learn Selenium -> Web Automation Framework Start(BDD) -> LIVE Projects -> 100 Program + Framework Now Applying (Resume Prep, LinkedIn), those will parallel) - QAJobfit, QAJobsboard 





 

Required Access

SDET.club 0x (Manuel) SDET Masterclass, 14x 

 https://forms.gle/L47EKJns4ZPobLUH6



 Rules of Life 100% Focus on One Thing -> Automation Tester -> All of the 100% efforts. 5% (Execution) and 95% (Plan) -> 5% Plan -> 95% -> Try and Fail -> Try Again ->Success. 50-70% is Perfect -> 100% is Failure - 25K + companies
40-70% Ready -> Interviews limited Oppor. -> Delhi, NCR, Bangalore, Chennai, Pune, -> 25K companies... New Actions -> Whatever worked in past, will not work in future. New Skills - G 



Financial Knowledge

Emergency Fund -> monthly - 50k x 6 months -> 3L ( FD, Bank) - Save Job Security. 20K per Month -> 1.2 L in your ACC, don't touch it, until emergency Health Insurance Term Insurance SIP - MF - Investing (5-10%) per month, - without -> index Nifty 

LEARNING. >> Struggling



 Learning for Java for Next 45 Days

30-45 Days Plan (Java)  Learning Java Let the Story Begin

Ask - tinyurl.com/ATB14xQuestions



 Action Plan

3-4 Months -> Target -> 250 to 400 Lab Ex. All the source code -> github.com -> Create FREE account at the github.com Core Java, OOPs, Collection Framework(DSA), Multi Threading, FILE io, Design Patterns & Misc Concepts. Sat, Sun -> 4-5+ hours , 1 hour per day (Mon to Fri) - Practice M,W,F - Task, Test, Coding Question, Intervieww... Coding Questions -> 250+ Question, ~ 70-100 Questions in this 3-4 monthis  docs.google.com/document/d/10sa_wcUcE_ubiTokBzn74UaPmPcjZoSIUcNkgywMGKw/edit?usp=sharing 

 image.png  image.png 

 Must Do Practice -> SAVE Career 

Java notes - docs.google.com/document/d/1MTcTTWTKyet8lA78NifqANJq70OEDF98hoCdFbedBWc/edit?usp=sharing

 tinyurl.com/ATB14xJavaNotes



Java Slides

docs.google.com/presentation/d/1zPUvG6vNf8hkeeq9o5DKZNjaVczKR9E3x-7pFnMK-Lw/edit?usp=sharing



Java Interview Questions

 docs.google.com/document/d/1s_lip-9CG1dvw7uyDgnujfDLeczAZFIq6d8pW1myaVQ/edit?usp=sharing

 Why do we need Programming? To interact with machine. to Teach machine Communicate with machine. Machine don't understand english. 

Computers / Machine can't understand the English.

switch off - 0

switch on - 1

Binary Language



Human Language -> Translate -> Machine Language.





⚠️ Interview Questions High Level Language Easier for humans to read and write; abstracts hardware details. Python ,Javascript , C# , Java. Consumes more memory during execution. Easier to modify and maintain. print("Hello"), System.out.println(""); Low Level Language. Closer to machine code; less readable for humans. ex. -> Binary Language ( 0,1) , Assembly More efficient, consumes less memory. More challenging to modify. 000010101010010100101 

⚠️ Compiled vs Interpreter - Interview 

 image.png ⚠️ is Java a Compiled or Interpreted Langage ? both, Java is Platform Independent because of Byte Code.



 image.png Python -> I /C -> 3 pYTHON - BOTH (PYC)



Major Features of Java Programming Language Simple OOps Platform Independent Portable Secure 

What is Source Code? Human understandable code written using High Level Programming language. System.out.print("Hello Pramod"); In java - NameOfFile.java. Source code is something that human write. You have to follow the rules of the programming language. Syntax - Rules that we have to follow. 

What is Byte Code? Bytecode is an intermediate, low-level representation of source code that is compiled and optimized for execution by a virtual machine (e.g., JVM in Java). It is not directly readable by humans or machines but is platform-independent and executed efficiently by interpreters or just-in-time compilers. Magic value. 

What is the Native Code? Code which NATIVE to the OS. Windows -NC -on window( .exe), dmg(mac), sh - linux 

Source Code (NameOfFile.java) -> Byte Code. ( JVM Can understand) -> Native Code (Machine), 0,1



 image.png 

What is Java Compiler? (javac)

Java Compiler is a program developed in C or C++ programming language with the name “javac”. It will check syntactic or grammatical errors of the programs. It converts source code to byte code. 

To write the Source Code ( human understandle) Installing IDE -> Eclipse or IntelliJ



 image.png 



 image.png 

Tell me About Yourself for QA Freshers / Experience (Script + Common Mistakes + Sample Answers)

 https://www.youtube.com/watch?v=EzGH3hZuJVk



 image.png Use this Custom Prompt ->

 www.perplexity.ai/search/based-on-this-resume-i-want-yo-r9eTN.nLRIefhNuLmAIZcQ

 

JDK > JRE> JVM 

JDK ( Java Development Kit ) Used for developing Java applications. 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. Complete package. Create a Java program Write/Develop -> Execute/Run also. Download versions - Oracle, Open JDK... JDK? 

JRE (Java Runtime Environment) to execute your java program Run the Execute /Java Files. Only JRE -> Where it used? Java game, applet & Serlet -> Run it (browser) that time browser Automatically) JRE -> 

JVM (Java Virtual Machine) JVM is responsible for executing the java program line by line, hence it is also known as an interpreter. Byte Code -> Native Code. (run it) 

 image.png 

Java Development KIT

JDK different Companies. Sun Microsystem, -> Oracle OS JDK (Source)- Oracle - Paid - EE - JDK EE 22 ( Extra functionality) OpenJDK -> FREE OS - JDK 23, MS - JDK Amazon - JDK , JDK 1 to 23 

How to create a Program in java? Code Editor -> Source code -> Simple -> Notepad IDE(integrated Development Env) - Advance Code EDITOR -> Source Code -> Easy -> Eclipse, IntelliJ, Cursor AI, Visual Studio Code, Netbeans. Visual Studio Code -> No Automation Framework - FREE -> (JS, Python). Not Recommend Eclipse -> Good , If have 2-3 Exp ( -> FREE) ✅ IntelliJ -> Best Fresher, Learning Java for First Time. Professional / Ultimate -> 30 Days trail - Don't Download CE - FREE and Open Source. Cursor AI -> God Level IDE (Paid) Netbeans -> No body uses. 



Java Editions ( 2 billion devices are on Java) Enterprise Edition - Banking, Application,Servlets, JSP, JDBC etc. Micro Edition - micro devices like Mobiles,Setup Box etc Standard Edition - Used to develop standalone applications using applet and swing (SE) 

Java Versions

1 to 23 ->. which one we are going to use, JDK > 13 is fine

JDK 23, 24 The Java versions are backward compatible.



Install the JDK Easy Way  Install IDE Eclipse  www.eclipse.org/downloads/ Download , Install -> Create New Java -. Give a Name, LearningJavaATB14xProgram Src -> Package ->(folder name) -> HelloWorld.java file Code - Explain. 

 image.png 





 image.png 

IntelliJ CE Windows - www.jetbrains.com/idea/download/?section=windows mac - www.jetbrains.com/idea/download/?section=mac Click next Next next

 image.png 



 image.png 

Over Ubuntu.

 image.png 

7th Sept 2025 What version should I use for the JDK? Jdk > 11  image.png 

Can you install Multiple version of the JDK into a Single MACHINE? Yes You can use one at a Time jdk 23 jdk 24 jdk 8 



Different Projects -> Different JDK API Automation -> JDK 21 sELENIUM -> jdk 24 

JDK 22 -> JRE (22) + javac (Compiler, C++,C) + Java(JVM) + jar(zip of .class) + extra utils(documentation) + javap(help file) + misc files.



What is this Package? Folder Special Folder - Java recognise. Why Package -> We want to keep the proper structure Java programs. 



 image.png 

⚠️ Flow Of Java PROGRAM Source Code ( Normal Code Editor NOTEPAD, intelliJ, eclipse , NotePad++) -> Javac ( Byte Code) -> JVM(JAVA) (I)( Line execution. ) -> Machine Code.



Every java program has a source code file with .java extension .java -> .class -> .exe, .sh ..machine file (010101) 

What is SRC folder? Folder which will contain all the Java files that we are working. 

What is out? (Bytecode)

Compiled Code Bytes Codes are presents 

Why we are using Folder Structure?

Learning purpose. Organised - Date What are topics which are covered. 

How to run a Java program?

 image.png  image.png 

Shortcuts for the intelliJ

 resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf

 www.jetbrains.com/help/idea/reference-keymap-mac-default.html#basic_editing



Syntax of Programming 

psvm - main

main -> main

⚠️ How Java program works? ( Source Code. file). Lab001.java Package package ex_01_Java_Basics; Basically tells the compiler that I am using a folder and this is the name of the folder, and when it is done, it adds a semicolon.
Class ( blueprint in Java) public class Lab001_HelloWorld { Method (main method, which is entry point to java program) public static void main(String[] args) { Statements ( That you want to do, always end with the ; (semi colon) System.out.println();

  • Statements ( That you want to do, always end with the ; (semi colon)
  • System.out.println();



public -> avaible to everyone.

package -> This is nothing but a special folder in.

class -> blueprint, every java program starts with the class

main -> Main entry point is here.

println -> Print something into the console with new line.





System, out, static, void , String[] , args 

Dev / Tester / Automation Eng - Writes a Code in the Source Code.(Java) Source Code. java. -> Lab001.java Run > Green icon -> ByteCode -> Lab001.class (out) 

 image.png  image.png Main Method - main - JVM ( java virtual machine) Lab001.class -> Output in the console. ( JVM) JVM is looking for the signature. public static void main(String[] Read the statement one by one and execute them. System.out.println("Hello World!"); 



How to write a Java program using Notepad? (Super Hard Way) Install the JDK Externally (Difficult Way) You need to check if JDK is installed on my machine or not. (cmd) javac --version java --version  www.openlogic.com/openjdk-downloads  image.png  image.png 



 image.png  image.png How to Set JAVA_HOME path in Windows Set the JAVA_HOME Variable

 https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html

 https://www.openlogic.com/openjdk-downloads

To set the JRE_HOME or JAVA_HOME variable:

Locate your Java installation directory If you didn't change the path during installation, it'll be something like

 image.png  image.png 

 image.png 

To install the OpenJDK into the Mac.

brew install openjdk So that brew is installed. If it is not installed, you can use this command to install brew.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

To type the command or type the program in the text edit, sublime text, Notepad++. So I save it as a Java and run it via the same( Terminal).



Run the Program in NotePad Pre Req -> JDK needs to run externally Make sure that you have saved the file in the same folder, where you are running the Commands Lab002.java

public class Lab002 { public static void main(String[] args){ System.out.println("Hi, Pramod"); } }

 image.png ls,cd, ... dir, pwd.. commands It means you lack in the cmd commands

linux Commands, Windows Works

Please watch this - courses.thetestingacademy.com/courses/sdet-club-masterclasses-1337/contents/647a955eb0a1c



How to write a Java program using Java Online Compiler? (Medium)  www.programiz.com/java-programming/online-compiler/  www.onlinegdb.com/online_java_compiler Java is a case-sensitive language. 

Windows Commands here ->

If you find the cd, mkdir, dir command strange or not related  www.perplexity.ai/search/winfows-commands-list-all-with-SwQeT79uRi2mKHiHY44eRg

Task for the 8th Sept  www.sdetclub.com/c/atb14x-only/task-8th-sept-2025-linux-windows-commands-qa

Test -> track.thetestingacademy.com/student/live-test

 ➡️ Linkedin HACKs land your dream job 

✅ Linkedin Headline Make sure that you use a Perplexity AI or ChatGPT. Upload your resume, which is the latest one that you are very confident with. Now this below prompt and it will give a perfect LinkedIn headline that you to you. 

Please help me create a LinkedIn headline that effectively communicates my experience, qualifications, and unique value. Consider incorporating keywords relevant to my industry as mentioned in the resume attached and showcasing my passion or mission. My headline should be a snapshot that captures attention and encourages visitors to explore my profile further.  image.png 

 image.png Top 3 LinkedIn Headlines for You: Option 1: Results-Driven & Leadership-Focused QA Manager | 8+ Years Leading Test Automation | Selenium, API Testing | Delivered 9K+ Test Cases | Team Builder

Option 2: Technical Expert with Scale Lead SDET → QA Manager | Automation Expert | CI/CD, Docker, Selenium | Built Enterprise Test Frameworks

Option 3: Community Leader & Technical Authority QA Manager | Test Automation Leader | PSM Certified | Founded TheTestingAcademy (30K+ Community) | Driving Quality at Scale



Ref - www.linkedin.com/in/pramoddutta/

 www.perplexity.ai/search/please-help-me-create-a-linked-w3gx7e3CRjupUf9aJLnOJQ



Resume Creation

novoresume.com/?noRedirect=true  www.kickresume.com (I Recommended)  flowcv.com/ (1 month first)  www.overleaf.com/  www.canva.com/resumes/  www.resume-now.com/ 

Reference resume. -> sdet.live/resume

Don't try to fully copy, modify it. Rule number two, make sure it is good for you. Try with multiple resume templates. Sometimes one work, one does not work. Sometimes one which is working does not work after some time. So try with multiple resume.

Recommend - 1 Page, 2 Pages (if you are too good)



✅ LinkedIn Summary Prompts

Craft a concise and compelling summary for my LinkedIn profile that highlights my professional journey, key skills, and what makes me unique. Keep the tone conversational and ensure the length does not exceed 150 words. Please find the attached resume for reference. 



✅ LinkedIn Experience Section Craft me impactful and detailed entries for my Experience section in LinkedIn that go beyond job descriptions. Share not only what I did but how my contributions made a difference. Utilize action verbs, quantify achievements where possible, and provide context to highlight the value I brought to each role. Use my Resume below for the details 

Final Link

 chatgpt.com/share/681edb6a-7d2c-8009-a48f-d6705d7a7d42





✅ Content Sharing Prompt I would like you to create content for my LinkedIn profile. Craft me a few interesting, informative, and pertinent posts for LinkedIn that are related to [Your Domain/Your Interest]. Mainly emphasis on sharing industry knowledge, personal experiences, and thought leadership. Keep the tone conversational and limit the words to 150 maximum. 

 www.perplexity.ai/search/please-help-me-create-a-linked-w3gx7e3CRjupUf9aJLnOJQ



 image.png 



Give you the motivation.

 www.linkedin.com/feed/update/urn:li:activity:7366683005479739392/

 image.png  image.png 

 image.png 

How to share the project into the GitHub?

 image.png  image.png 

This is the repo.

 github.com/PramodDutta/LearningATB14xJavaPrograms/blob/main/src/ex_01_Java_Basics/Lab001_HelloWorld.java



git.exe is not init failed.....blah  Any kind of Git related issue, just download this URL and install it and restart your IntelliJ.

 git-scm.com/downloads/win

 image.png 

I want all of you to try to upload this into the Git. Everyone is going to do that. And this week is your target that we will be checking it. Now, if you are



Your GitHub repository here.

 www.sdetclub.com/c/atb14x-only/git-repo-creation-thread





Task 1- 8th , 10th , 12th (Git creation).



 13th Sept 2025 Java | Comments in Java 



Java comments are non-executable statements used to provide explanations, annotations, or documentation within the code.



Single Line -> // Multiple Line -> /** **/ Shortcut ->

Comment / uncomment with line comment Ctrl + /. ( cmd+/) Comment / uncomment with block comment Ctrl + Shift + / 

 image.png  image.png 

 image.png 

We are using comments for multiple purposes: for documentation, for describing our code, for giving information to the user

 ✅ Keywords & Identifiers 

Keywords Simple English words which are having predefined meaning in Java Programming Language. Keywords are also called Reserved Words. All the keywords are defined in Lower Case.
We can’t use keywords as names for variables, methods, classes, or as any other identifiers. 

 image.png 

Identifiers 

names those will be used to identify the programming elements like classes, methods, variables, etc uniquely. 

Rules to follow when you define an Identifier: Identifier can contain Alphabets, Digits, and two special symbol i.e. Dollar ($), ,. Underscore (). First character of an identifier must be an Alphabet(a-z,A-Z) or Dollar ($) or Underscore (_). Keywords or Reserved words can't be used as Identifiers. 

// name convention - first letter capital and other letter capital also - CamelCase

// ex_02_Java_Basics ->. SnaKEcaSE



 image.png 101 RS - Dipak WhatsApp -> Shambhavi



The Order of Operations

Brackets: Solve any expressions within brackets first, working from the innermost to the outermost. Orders: Next, handle any powers (exponents) and roots. Division and Multiplication: These have the same priority and are performed in the order they appear from left to right. Addition and Subtraction: These also have the same priority and are performed from left to right. 

⚠️ Remember the interview Questions

There can be multiple main methods, but only one main method with JVM Recognize. 

You can have multiple main functions, but only one function of main which is recognized by JVM should be present. The concept of multiple main function in the program is called as main method overloading. 

println() vs print() println -> new line in the console

print -> will not add a newline



Functions == Methods(class) in Java // Block of code



 image.png 

⚠️ What are the differences between keywords and identifiers in Java? 

Keywords are predefined, reserved words in Java that have special meanings and functions within the language. They are used to define the structure and behavior of Java programs.



Keywords:

int, class, public, static, void, if, else, while, for 

Identifiers, on the other hand, are names created by programmers to identify various program elements such as variables, methods, classes, and interfaces



Identifiers:

score, highestScore, convertToString, number1 

How many Java keywords are currently used? 53-56 keyswords





How to push the Code to github.com?  image.png  github.com/PramodDutta/LearningATB14xJavaPrograms/tree/main/src



Make sure that you have already shared the project to github.com (Share with github.com) Git -> Commit (add a message) ->. git push -> then done 

Delete the File

 image.png 

 





 image.png 

GIT vs GITHUB vs GITLAB



What is GIT? Git is a version control system that is used for tracking changes to files.

It does this through a series of snapshots of your project.

It works with those snapshots to version and manage your source code, and it does this in a simple way.

Git -> protocol -> Rules -> Which can track your source code.

Git -> Version Control System - track our files.



 image.png 

 image.png  image.png Why Use Git? Can work offline. Collaborating with others is easy! Branching is easy! Branching is fast! Merging is easy! Git is fast. Git is flexible. 

Git is a version control system, while GitHub and GitLab are web-based Git repositories.



GitHub.com is a company that provides Git hosting, and it offers both a cloud-based hosting service and on-premises enterprise versions. alternate of github
bitbucket.com



GitLab is similar to GitHub, But contains more things, but it is an open-source Git hosting platform. It provides a web-based interface for working with Git repositories, as well as a range of tools for collaboration, project management, and continuous integration. (Github+ Jenkins+ DevSec Platform)



GitLab Website: gitlab.com Key features: Built-in CI/CD, DevOps lifecycle management, self-hosting option, open-source Community Edition. 2. Bitbucket Website: bitbucket.org Key features: Integration with Jira & Trello, private repos for small teams (free), built-in CI/CD (Bitbucket Pipelines). 3. SourceForge Website: sourceforge.net Key features: Focus on open-source projects, project hosting, bug tracking, built-in downloads for distribution. AWS CodeCommit Website: aws.amazon.com/codecommit Key features: Fully managed Git repositories, integrates deeply with AWS ecosystem, scalable and secure. Azure DevOps Repos Website: azure.microsoft.com/services/devops/repos Key features: Integrated with Azure services, enterprise-grade repositories, pipelines, boards, and test management. 

How to upload your Source to the Github.com (By IntelliJ)? Create FREE account on the github.com  github.com/signup Note down your Username and password. - Share the repo 

Go Advance - Commands via the GIT

 sdet.live/git



Can we have multiple main method? Yes can have, only one will work which is "public static void main(String[]" 

Can we run a program without a main method? Java < 7 - Yes ( if yes static block) 8 to 21 JDK - it was not possible 21-> there is way. (static)  Variables and Data Type 

​​What is Variable? Store the value (which can be changed in the program). Each variable should be given a unique name (identifier). Memory will be allocated for the variable while executing the program. Value of the variable can be changed any number of times during the program execution. 

How to create Variable? (Declaration Syntax)

data_type variable_name = variable_value



variable_name -> identifier variable_value -> literal data_type -> int, short, byte, long, float, ....



Variable Name (identifier) | Rules to follow when you define an Identifier: Identifier can contain Alphabets, Digits, and two special symbol i.e. Dollar ($). Underscore (). First character of an identifier must be an Alphabet or Dollar ($) or Underscore (). Keywords or Reserved words can't be used as Identifiers. 



Data Types Value they can store, Size(Range) -



Primitive Types Non Primitive Types , (Reference Type) 

Primitive Types Boolean Type Numeric Type Intergral -> ( whole numbers) , no decimal) byte short char int long Floating ->. with decimal) float double 

 image.png 



Non Primitive (Reference Data Types)

String - PRAMOD -> p,r,a,m,o,d Arrays Enums 

 image.png  image.png 

boolean is_pramod_married = true;

byte age = 65;



Variables in Java are strongly typed; thus they all must have a data type declared with their identifier.



 14th Sept 

Variables and Data Type, Literals



byte b = 128; // Out of range -> ?



⚠️ We need to use the container or the data type that basically consumes the maximum capacity.

 image.png 

When the statement byte b = 10 is executed in Java.

the JVM creates a variable named b of type byte and assigns it the value 10.

the value 10 is represented in binary format as 00001010. (8 Bits = 1 Byte)

 www.rapidtables.com/convert/number/decimal-to-binary.html?x=10 The JVM allocates a specific memory location for the variable b. 

byte b = 128; -> 128 ->. 100000000 (overflowed). 8 Bits We can't store it.



-128 to 127 - range byte is not able to store the value.



println() Vs printF() vs print()  println -> it will add a extra new line in the end.

print -> it will not add any extra line.

printf -> in c ->c++, basicall used to format the output.



 Constants Special variable whose value can't be modified during the program execution. One created and SET THE VALUE , we will not able to modify. PI - 3.14 , this value should be change during the execution of the program. Constant is also called as final variable. 

Why it required? Constants - they should be final in nature. 

If you try to change the value - java: cannot assign a value to final variable PI



Channel is the keyword which will make a variable constant.





Local Variable

We have to initialize if you want to use it.



 Variables Types ( Scope)

Local Variables - within {} Static Variable - ? Instance Variable -? Last 2,3 will come in OOPs concepts



 ex_03_Literals , Operators



QAJob fit -> Resume Be ready ->



 ⚠️ Daily Routine of Automation Tester (+ Manual Discuss) Syncs (Sprint Scrum) - Daily Stand ups (Scrum Standups) - https://sdet.live/agile What we have worked on last day What we are working on today Any Blockers Env Sprints (Agile Env) - sdet.live/agile Sprints Planning Retro Meeting Code Review, Peer Repo review. Backlog Refinement Non Sprint Gather Requirement, Analysis) Test Cases ( Creation, Review ,Google Sheet, Zephyr, Xray, Practitest Test Plan and execution Raise Bugs, Meetings, Internal demo, Defeat Management Back log Refinements(Automation Tester) Backlog Automation ( 4-10 Test Cases Daily) Regression Maintenance Hotfixes Validation Automation Running (over the jenkins) Manual Testing Env Setup, Env Stability Check ( AT) Collaboration within the Dev, Devops, PM Teams for better Test Coverage Production Bugs Handling, Meetings, RCA, Fixing, Hotfixes, Release Validations Framework Automation improvements (Activities) 

here is the ref. - www.sdetclub.com/c/atb14x-only/daily-routine-of-automation-tester-manual-discuss

  image.png 



 image.png 

Pramod, what is your daily routine? Please tell me about yourself. Hi guys. Hi sir. So basically, it starts with mostly the stand-ups. We are following the Agile and Scrum framework right now, and where we have our daily stand-ups, which are sprint scrums that you have, where we generally ask for, right, what exactly we have worked on yesterday, what we are going to work today. We will basically, if there is any blocker, we highlight to the overall team. After that, my task is that, okay, we have a backlog items for the automation that we pick it up. We try to automate them. If there is any regression, stability issue, maintenance issue or something, I will just try to handle it. If there is any hotfix which is planned for today, I will plan the hotfix which are the Jenkins pipeline we need to learn to run and which parameters we need to run with on which environments. It is a staging environment, QA environment, production environment and all. I generally basically do that. We follow a very simple Scrum framework where we will have a sprint meeting, sprint planning, retros and everything. So if there are any retros or ceremonies which are planned for the Scrum framework, we basically give that and attend that also. Also, I have a collaboration meeting with the developers to understand the knowledge of new features which are coming, which is also as planned of this. And in the end, most of the time, I will send my report to my manager about what are the different tasks I have done. And if there is any blocker, generally I send all this activity to them. This is kind of a similar routine for my automation tester profile. I also do some kind of manual stuff also where we have some planned activity to do for test case creation and test planning also. I also contribute to that daily. Most of the time I will do it for the new feature which are coming.



Task 1 -> Table of 9

Task 2 -> Finish this training www.sdetclub.com/c/atb14x-only/task-15th-sept-complete-the-agile-and-scrum-training



Daily Routine Example Start the day with daily stand-ups (Agile & Scrum framework). Discuss what was done yesterday. Share today’s tasks. Highlight any blockers to the team. Pick automation backlog items and work on automating them. Handle regression, stability, and maintenance issues in automation. Manage hotfix activities: Plan hotfix execution. Run Jenkins pipelines with correct parameters. Execute on staging, QA, or production environments. Participate in Scrum ceremonies: Sprint planning. Sprint review. Retrospective. Collaborate with developers: Gain knowledge of new features. Align automation tasks with development updates. Report daily to the manager: Share completed tasks. Flag blockers or issues. Perform manual testing tasks: Test case creation. Test planning. Test execution for new features. Mentoring the junior QA if required. 

AT/SDET == QA + Automation , SDET more inclined towards the Dev role.



  image.png 

 

✅ Literals 

int a = 10;

Literals are the actual values assigned Literals can be Numeric and Non Numeric. 

data_types variable_name (identifier) = variable_value ( literal) 

Types of Literals Boolean Literals - true, false Character Literals String Literals Integral Literals Floating Literals null Literal , Scientific Literals 



 image.png A-Z, !@#$%^&*() - ( 65 to 3500)

象, ₹

ASCII -

UniCode - \u03203



 int a = 10;



 Operators An operator is a special symbol. Tells the compiler to perform specific mathematical or logical operations on operands. Operators are used to perform operations by using operands.(variable names) -> age. 

There are three types of operator depending on the number of operands required

Unary Operator Binary Operator Ternary Operator 



Assignment Operator ( =) int a = 10;// = -> assignment operator// RHV to the LH Arithmetic Operators -> Used for basic mathematical operations. + (Addition) - (Subtraction) * (Multiplication) / (Division) % (Modulus) Relational Operators (Used to compare two values.) < (Less than) <= (Less than or equal to) > (Greater than) >= (Greater than or equal to) == (Equal to) != (Not equal to) Logical Operators -> (Digital Electronics) && (AND) || (OR) ! (NOT) - REVERSE Compound Assignment Operators += -= /=  *= New operator String s1 = new String("Pramod"); Instance of operator Increment and Decrement 

 image.png  image.png BODMAS is an acronym that helps people remember the order of mathematical operations

B: Brackets O: Order (powers, indices, or roots) D: Division M: Multiplication A: Addition S: Subtraction   qajobfit.com/ Create FREE Signup Upload your Resume and Get the Score. ->  20th Sept 2025



Problem Task -> Table of 5th or 9 5x1 = 5

Solution

package ex_04_Operators;

public class Task001 { public static void main(String[] args) {

    // Print the table of 9 or 5 using the System.out.printf
    int num = 9;
    // 9x1=9
    // 9x2=18
    // int -> %d, String -> %s, Char -%c, float -> %f
    System.out.printf("%dx1=%d",num,num*1);
    System.out.println();
    System.out.printf("%dx2=%d",num,num*2).println();
    System.out.printf("%dx3=%d",num,num*3).println();
    System.out.println("...");
    System.out.printf("%dx9=%d",num,num*9).println();
    System.out.printf("%dx10=%d",num,num*10).println();



}

}



 = -> Assignment Operator (rhv == lv)

== -> Compare Vaue operator which return the boolean (compare)



 The Byte size of a non-primitive variable. (Byte, Bits) ->

 image.png 

According to BODMAS (or PEMDAS), the order is:

Brackets Orders (powers, roots) Division Multiplication Addition Subtraction However, Multiplication and Division have the same precedence. When both appear together (without brackets),most programming languages evaluates them from left to right.

that is why we don't have division first instead multiplication





 Type Casting (Java) 

Type casting in Java is the process of converting a value from one data type to another. There are two main types of type casting: widening -> Explicit, Implicit narrowing -> Explicit, Implicit 

Widening Casting Widening casting, also known as implicit casting, occurs when converting a smaller data type to a larger one. This type of casting is performed automatically by the Java compiler and is considered safe because there's no risk of data loss. 

 Ternary Operator // result = condition ? expression1 : expression2;



// Nested Ternary // result = condition1 ? expression1 : (condition2 ? expression2 : expression3);



21 Sept 2025 

Ternary Operator Concept The conditional operator, commonly known as the ternary operator in Java. evaluate a condition and return one of two values based on the result. Very similar - if-else statement. 

Syntax result = condition ? expression1 : expression2; condition: This is a boolean expression that is evaluated. expression1: This expression is executed if the condition is true. expression2: This expression is executed if the condition is false. 

 Logic Building | Coding Interview Crack (LBF) Step 1 -> Find the inputs and outputs - data types and what is the exactly the out put interviewer looking. Step 2 - Rough logic , brute force - > explain it side by side. Step 3 - Write the logic and present the solution (Dry Run). Step 4 - Optimize and discussion. Step 5 - Edge Cases and extra discussion. 

 Input from users (in java) CLI Command line. (Args) Scanner class. Buffer Reader class Files as input. 



CLI - command line inputs  image.png 

 image.png   image.png 

 image.png  Increment and decrement Operator 

Increment Operator (++) Prefix Increment: ++variable Postfix Increment: variable++ 

Decrement Operator (++) Pre Decrement: --variable Post Decrement: variable-- 

 int a = 10; ( 1)++ -> +

Pre - increment -> ++a , operand.

value is incremented first and then stored in the result. 

Post a++

print first and then increase the value. 

 Expression and Result Table ( ERT) // Line no | a | Result (b) 



 image.png Tell them to write down the expectations. (Communicate) Ask Examples So make sure that in the hotfixes there will be no bugs. One of the expectations they might have is that you will have to take care of the test cases, overall sprint planning and make sure that there is no slippage and everything. I don't want to see any slippage. You can learn about new POCs and add a new automation or new approach in our overall SDLC lifecycle. Points to fight, if they don't give you good rating My Goals Action. Plan Quantified If it contains number


 image.png 

Say -> NO



Never tell everything to your Manager. Start learning to Say No Start asking, 1 will do this time, but everytime, this kills the motivation work. Make 1 family member ill ->. didi -> execuse -> 





10 TC writer per day ( 6-7 PER DAY) Take owner - Hotifxeds  27th Sept 2025 

Debug a Program in Java Step by Step execution to see the results. To find the issues(we can run the program line by line). Rule -> Add breaking point (red) by clicking on the number -> condition. 

Run ->

Complete run in One Go.

Interviews (If Else)



 image.png 

dasdas

 image.png 

 



 Image-2025-09-27-09.22.09.jpg 

✅ Triangle Classifier: Write a program that classifies a triangle based on its side lengths. Given three input values representing the lengths of the sides, determine if the triangle is equilateral (all sides are equal), isosceles (exactly two sides are equal), or scalene (no sides are equal). Use an if-else statement to classify the triangle.



Input -> side1, side2, side3
( int) , (String) -> Int  Output -> Eq -> side 1 == side2 == side3 , Only 2 are equal iso, none - scalene ( String out) 



 Image-2025-09-27-09.27.40.jpg 



 

Conditions and Loops 

If Conditional (statement) 

Decision-making in programming. 



Only If condition If - else If with elseIf, else 

Basic syntax if (condition) { // code to be executed if the condition is true } else { // do this }

condition -> o/p. should be boolean condition -> it will result in either true or false. -> Result dataytpe -> (boolean)

Basic syntax





  1. If we have multiple condition - if else - complex.
  2. Break and Continue keywords - can't be used with the if and else.

NesteD if, Switch, For, For Each... ..dasda

Taking user input CLI Options -> int age = Integer.parseInt(args[0]); Scanner Class -> 

Scanner

To take an input from a user as a string. You have to convert or you can take a particular type of data type based on the function that you are calling. Impport - import java.util.Scanner; 

Scanner class Class, it has a inbuilt method like nextInt, , next, nextFloat. These inbuilt methods can be used to basically get an input from a user and assign directly into their respective data types. You can use the Scanner class; it's an inbuilt class provided by Java. You have to create the object by using the new operator. The moment you use it, you can directly use their functions to get input from a user. 



 Switch Statements Multiple Condition or statements. Java switch statement executes one statement from multiple conditions. ⚠️ Java switch expressions must be of byte, short, int, long(with its Wrapper type), enums and String. Beginning with JDK7, it also works with enumerated types. The value for a case must be constant or literal. Variables are not allowed. 

Syntax - Switch statement switch(expression)

{

 // case statements

 // values must be of same type of expression

 case value1 : expression = value 1 ->

 // Statements

 break; // break is optional

 case value2 :

 // Statements

 break; // break is optional

default:

break;

}





 Problem

// You need to take a user input and ask for the integer from 1 to 7. // And if user enters 1 to 7, // you will tell which day it is.

// Logic Building Formula

// Step 1 - Number one is using the Scanner class. // Step 2 number two will be basically figuring out the expression and the day. // Step 3- We will basically add step 3 as a rough logic. // Step 4 - 4 is you will write the fix the logic and optimize. // Step 5 - figure out the edge cases.

 For Loop Loop Repeat something If the Condition == true - keep doing something.  



 Image-2025-09-28-09.08.09.jpg 

I,C,U

// Initialization -> Condition -> Updation(Incre/decre)



Exit Code List - journal.thobe.org/2013/02/jvms-and-kill-signals.html





Break and Continue BREAK exit the loop Only allowed in the switch and for. Continue Skip below and continue. 

 Factorial - calculate the factorial of a number

 Image-2025-09-28-10.12.23.jpg  Image-2025-09-28-10.23.02.jpg 

 While Loop When you are using for statement or while statement then it verifies the condition before executing the block. So in the case of for statement and while statement, when first time condition is false then the block will not be executed. for and while statement are also called as Entry Controlled Loop. while - I, C, U I - Init C - Condition U - Updation Increment / Decrement





I

while( C) {

//. Block of Code we want to execute

U

}

 Difference between For Loop and While Loop

For -> Initialization

Typically included in the loop syntax.   Condition -> inside



While condition checked, Int Outside, check condition first then do something.





 Do While Loop 

// While -> Int -> Condition -> Body -> Updation ()increment / decrement)



// Do while -> // Int -> body (1 time) -> Condition -> Updation ()incre / drement)



 Image-2025-09-28-10.51.18.jpg  Pending Coding Questions | (NotePad or Online Compiler) Reverse the number using for loop. (In - 12345, Out - 54321) Count vowels and consonants in a String. Palidrome of String (chatAt()) Prime Number Leap year. Fibonacci Series Factorials - ✅ Reverse String ( This one we have to do, when we have done the String concept) Right and Left Triangle Patterns. 



 github.com/PramodDutta/LearningATB14xJavaPrograms/tree/main/src



About

14th batch for my refernece

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published