Skip to toolbar

Basic Java – 20 || Sending Email with attachment using Java (Part-2).

In the last chapter, we have learned sending email using Java. In this chapter, we will go a little in-depth and will learn a few important things like multiple recipients, attachments, marking cc or bcc, etc. Key Highlights in this chapter Single recipient or email id for To field message.setRecipient(RecipientType.TO, new InternetAddress(recieverID)); Multiple recipients orRead More

Basic Java – 19 || Sending Email using Java (Part-1).

After the successful execution of any program or tool, it is better to share status or report via sending email to the stakeholders. This objective can be achieved by javax.mail package. javax is an extended version of Java which contains many sub-packages to give additional features to Java language. One of the most important featuresRead More

Basic Java – 18 || Difference between break and continue keywords.

Both break and continue are the reserved keywords in java. These are mainly used while using switch or loops in the program. break and continue In the above image, we can see the difference between these two keywords. When we are using a break keyword it exits from the current loop or a switch blockRead More

Basic Java – 17 || Runtime User Input using Console Class (Part-3).

There is also a third way to take user input via using Console class. This method helps a user to take inputs via Command Prompt. Before proceeding further, I would request you to please read the first two parts of this tutorial. Basic Java – 15 || Runtime User Input using Scanner Class (Part-1). BasicRead More

Basic Java – 16 || Runtime User Input using BufferedReader Class (Part-2).

An alternate method to take user input is BufferedReader class. Unlike Scanner class, BufferedReader is fast and simple. If you don’t have read about Scanner Class, would request you to please have a look and understanding of Scanner Class, please visit the previous chapter: Basic Java – 15 || Runtime User Input using Scanner Class (Part-1).Read More

Basic Java – 15 || Runtime User Input using Scanner Class (Part-1).

Scanner Class is the commonly used way of taking user inputs. There are many instances where user interaction is needed at runtime during the Program execution. Scanner Class It can be used via java.util.Scanner library files. There is a major role of Whitespace and Enter while taking user inputs using Scanner class. These user inputsRead More

Basic Java – 14 || Difference between IndexOf() and lastIndexOf() methods of Strings in JAVA.

Both indexOf() and lastIndexOf() are methods of String object. These methods will be used to get the position or index of a particular character/substring within the target string. Important Notes: Index of a string would start from 0. The searching of the character or substring is case sensitive. Means small a and capital A areRead More

Basic Java – 13 || Decimal values v/s Octal base(8) values in JAVA.

Any numeric value which fulfills below conditions would be treated as octal base(8) values: Should have three or more digits Should start with 0 Octal base number system The octal number system is like a binary number system having the base of 8. It works on 0-7 digits values. Example of Octal numbers, 010, 011,Read More

Basic Java – 12 || Alternate looping concepts while and do-while. (Loops Part-2)

           While and do-while are two more alternates of for loop in Java. The only representation of these statements is different. while Loop           While loop consists only one parameter, based on that it repeats the instructions given in while block.        A while loopRead More

Site Statistics

  • Users online: 0 
  • Visitors today : 10
  • Page views today : 20
  • Total visitors : 48,396
  • Total page view: 66,588

   YouTube ChannelQuora

            Ashok Kumar is working in an IT Company as a QA Consultant. He has started his career as a Test Trainee in manual testing in August 2010. Then he moves towards the automation testing after 4 years. He started learning JAVA and Selenium by self to get the knowledge of automation.

       While learning these tools and working on multiple projects, he found that sometimes people get stuck in live scenarios in their project and they have to do lots of RnD to get out of it. So he decided to start blogging only for such scenarios, where anyone facing any problem in their project, can ask any question or give a solution or you can say an alternate solution to achieve the goal successfully.

Later on, he observed that some people want to learn Java but they have few questions in their mind like how to start Java, whether we should go for the online or offline course. So he started writing tutorials on Java, Jira, Selenium, Excel etc.