Basic Java Primer for Selenium Users

Introduction to basic Java syntax for users of the Selenium tool

Course Code : 1226

[RICH_REVIEWS_SNIPPET stars_only=”true” category=””]



This Basic Java primer course is designed for Selenium users, introducing them to the basic Java syntax. The course equips the participants with the skills and knowledge essential for them to work efficiently with Selenium’s testing scripts and automation tools, as well as customize and enhance its capabilities to meet specific desired requirements. The course covers introductory and beginner level concepts that would enable participants to use Java successfully and support Selenium/WebDriver.

Schedule Classes

Looking for more sessions of this class?

Course Delivery

This course is available in the following formats:

Live Classroom
Duration: 5 days

Live Virtual Classroom
Duration: 5 days

What You'll learn

  • Objects, classes and OO implementations
  • OO concepts such as encapsulation, inheritance, polymorphism and abstraction
  • Role of Java in Selenium’s functionality
  • Basic Java syntax for flow control (looping and conditionals) as well as string handling and basic data structures
  • Java exception handling features
  • Classes, inheritance and polymorphism


  • Java platforms
  • Lifecycle of a Java program
  • Responsibilities of a JVM
  • Documentation and code reuse
  • Setting up environment
  • Locating class files
  • Compiling package classes
  • Source and class files
  • Java applications
  • Exercise: Exploring MemoryViewer
  • Exercise: Exploring ColorPicker
  • Workbench and Workspace
  • Views
  • Editors
  • Perspectives
  • Projects
  • Tutorial: Working with Eclipse Oxygen
  • Classes in Java
  • Class modifiers and types
  • Class instance variables
  • Primitives vs. object references
  • Creating objects
  • Exercise: Create a simple class
  • Passing parameters into methods
  • Returning a value from a method
  • Overloaded methods
  • Constructors
  • Optimizing constructor usage
  • Exercise: Create a class with methods
  • Operators
  • Comparison and Logical operators
  • Looping
  • Continue and break statements
  • The Switch statement
  • The FOR-EACH() loop
  • Exercise: Looping
  • Strings
  • String methods
  • String equality
  • Stringbuffer
  • Stringbuilder
  • Exercise: Fun with Strings
  • Exercise: Using StringBuffers and StringBuilders
  • Extending a Class
  • Casting
  • The Object class
  • Default constructor
  • Implicit constructor chaining
  • Exercise: Creating sub-classes
  • Instance vs. Local variables: Usage differences
  • Data types
  • Default values
  • Block scoping rules
  • Final and static fields
  • Static methods
  • Exercise: Field test
  • Arrays
  • Accessing the Arrays
  • Multi-dimensional Arrays
  • Copying Arrays
  • Variable Arguments
  • Exercise: Creating an Array
  • Class location of Packages
  • The Package keyword
  • Importing classes
  • Executing programs
  • Java naming conventions
  • Polymorphism: The sub-classes
  • Upcasting vs. Downcasting
  • Calling Superclass methods from sub-class
  • The final keyword
  • Exercise: Salaries – Polymorphism
  • Separating capability from implementation
  • Abstract classes
  • Implementing an interface
  • Abstract classes vs. interfaces
  • Exercise: Mailable – Interfaces
  • Exception architecture
  • Handling multiple exceptions
  • Automatic closure of resources
  • Creating your own exceptions
  • Throwing exceptions
  • Checked vs. unchecked exceptions
  • Exercise: Exceptions
  • Generics and Sub-typing
  • Bounded Wildcards
  • Generic methods
  • Legacy calls to Generics
  • When Generics should be used
  • Exercise: Shopping Cart
  • Characterizing collections
  • Collection interface hierarchy
  • Iterators
  • The Set interface
  • The List interface
  • Queue interface
  • Map interfaces
  • Using the right collection
  • Collecting and multi-threading
  • Exercise: Collections Poker
View More


Participants need to have a basic working knowledge of developing and/or testing software applications.

Who Should Attend

The Basic Java Primer is highly recommended for –

  • Testers
  • Quality assurance professionals
  • Business Analysts
  • Automation analysts
  • Quality engineers

Interested in this course? Let’s connect!