Category: Java

Difference Between JSON vs XML

Difference between JSON(Java Script Object Notation) and XML(eXtensible Markup Language). The major difference between are as follows. No. JSON XML 1) JSON stands for JavaScript Object Notation. XML stands for eXtensible Markup Language. 2) JSON is simple to read and write. XML is less simple than JSON. 3) JSON is easy to learn. XML is […]

Continue Reading

Selenium Wait Implicit Wait Explicit Wait Fluent Wait

Selenium Wait  Command is used in Selenium WebDriver to wait a particular amount of time defined by user.Selenium Wait can be divided into two categories Implicit wait and Explicit wait and another type of hybrid wait is Fluent Wait.In the implicit wait selenium WebDriver wait for a fixed amount of time before executing next command or […]

Continue Reading

Eclipse Windows, Mac, and Linux

Now just type “syso”, followed by CTRL + SPACE. Eclipse will magically fill out the full System.out.println() function call and place your cursor in between the parentheses, so that you can easily type in your desired output. This trick works exactly the same, whether you’re on a Windows, Mac, or Linux version of Eclipse. public […]

Continue Reading

Polymorphism in Java

Member of a class changing its behavior based on input given is called as polymorphism 1.Run time Ploymorphism 2.Compile time Polymorphism 1.Run time Ploymorphism Method overloading is run time polymorphism in method overloading call to the method is decided at the run time based on the object given. 2.Compile time polymorphism Method overriding is compile […]

Continue Reading

Access Modifiers in Java

In java their are 4 access modifiers public,protected,<default>,<package>,private Public-Public  is the access modifiers which shows the highest visibility any class member declare as public can be visible 1.Within the class. 2.Within the package. 3.Outside the package. Protected-Any class member declare as protected are visible 1.Within the class. 2.Within the package. 3.Out side the package but […]

Continue Reading

Java Autoboxing and Unboxing with examples

Java 1.5 introduced a special feature of auto conversion of primitive types to the corresponding Wrapper class and vice versa. Autoboxing: Automatic conversion of primitive types to the object of their corresponding wrapper classes is known as autoboxing. For example – conversion of int to Integer, long to Long, double to Double etc. Unboxing: It […]

Continue Reading