Posts

Showing posts from March, 2021

Java Basics:Data Types

  Data Types in Java Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in Java: Primitive data types:  The primitive data types include boolean, char, byte, short, int, long, float and double. Non-primitive data types:  The non-primitive data types include Classes,Interfaces,Arrays. 1) Primitive data types In Java, we have eight primitive data types: boolean, char, byte, short, int, long, float and double. Java developers included these data types to maintain the portability of java as the size of these primitive data types do not change from one operating system to another. byte ,  short ,  int  and  long  data types are used for storing whole numbers. float  and  double  are used for fractional numbers. char  is used for storing characters(letters). boolean  data type is used for variables that holds either true or false. byte: This can hold whole number between -128 and 127. Mostly used to save memory and when you

Selenium-Java Contents

  Contents Datatypes In Java String Class In Java  if, if else and nested if else In Java   for loop In Java   while, do while loops In Java   One and two dimensional array In Java   Methods In Java   Access Modifiers In Java   Return Type Of Method In Java   Static, Non Static Methods, Variables In Java   Object In Java   Variable Types In Java   Constructor In Java   Inheritance In Java   Interface In Java   ArrayList In Java   Hashtable In Java   Read-Write Text File In Java   Exception handling, try-catch-finally, throw and throws In Java   Useful Eclipse Shortcuts To Use With Selenium WebDriver Automation Encapsulation In Java Polymorphism In Java What Is An Abstract Class In Java? What Is Method Overloading In Java? Similarities And Difference Between Abstract Class And Interface Usage of "final" Keyword In Java What Is Use Of "Super" Keyword In Java?