Multithreading Tabbed Browser

Posted on Posted in Java

Multi-threading Tabbed Browser

 

Multithreading solution

Posted on Posted in Java

Multi-threading solution – Runnable interface method

  Multi-threading solution – subclass Thread method

 

Multithreading exercise

Posted on Posted in Java

Multi-threading exercise In our day to day use of our PC/laptops, we do multiple things in parallel like surfing internet ( or sometimes practicing Java coding) while listening to music. In this exercise, we are trying to do two things –    1. download a file and    2. listen to a song. Class DownloadManager is providing […]

Java – Multithreading

Posted on Posted in Java

We can think thread as a component of processes. Every process has at least one thread. Multiple threads can exist within the same process, executing concurrently and sharing the process’s resources, including memory and open files.   Q for thought: why do we need multi-threading ? Can you think of some scenarios where multi-threading helps /is required […]

Selenium – Browser Commands

Posted on Posted in Selenium Java

Understanding Browser Commands Most important reason for us to open a Web Browser is that we want to visit some website.  After the website opens up there are two things we can do. Interact with browser (Get Page Title, Get Current Url, Get page source etc.) Interact with components of website (Menu, Textboxes, RadioButtons etc.) In this tutorial […]

Selenium – Navigation Commands

Posted on Posted in Selenium Java

What is Selenium & Why should I used it? Selenium Automates Browser.  That means anything that we do in browser manually, can be programmatically done using Selenium. Selenium WebDriver provides us Classes and Functions that helps us perform browser operations by writing code.  In this tutorial we are going to focus on Navigation bar of browser and see […]

Java – String Class

Posted on Posted in Java

String – Class or Primitive Data Type? String is a most frequently used Java class. Ideally to create object of String class we should write code like

But since it is most frequently used class, Java has made it easy for us to create string objects by directly assigning it a string value.

This […]

Java – Class

Posted on Posted in Java

Class is referred to a User Defined Data Type.  Generally in real world it represents a category of things,  Object is a uniquely identifiable entity of Data Type Class. MobilePhone is a class, as it represents category of devices. My iPhone 6S with IMEI Number XXXXXX and a Wallpaper of Company Logo – is uniquely […]

Java – Objects

Posted on Posted in Java

Objects are similar to variables. With few differences that will become evident in next few lines of the tutorial. Java has Eight Primitive (Basic) Data Types and Huge number of Classes (Complex Data Types). Declaration Syntax There is no difference between way we declare a variable and the way we declare an object.

Initialization & […]

Quiz – Variables

Posted on Leave a commentPosted in Java Quiz
Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1What would be the right data type for declaring a variable that stores count of wrist watches [...]