Java for Testers – Interview Questions and Answers Part-3 1) Write a Java program to demonstrate the creation of Interface? // A simple interface interface A { final int a = 10; void display(); } // A class that implements the interface. class TestClass implements A { public void display() { System.out.println("this is an interface");…
Java for Testers – Interview Questions and Answers Part-2 1) Write a Java program to print Floyd’s triangle? public class FloydTriangle { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println("Enter the number of rows"); int rows = sc.nextInt(); printFloydTriangle(rows); } public static void printFloydTriangle(int n){ int number = 1; for(int i=0;i<n;i++){ for(int…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained about different types of Operators in Java. In this article, I am going to explain about different Arithmetic Operators in Java. Java for Testers…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained about different Arithmetic Operators in Java. In this article, I am going to explain about the first Arithmetic Operator i.e. Addition Operator in Java…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained about different types of Type Casting in Java. In this article, I am going to explain about the different types of Operators in Java.…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained about the Type Casting in Java. In this article, I am going to explain about the different types of Type Casting in Java. Java…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous articles, I have explained about Data Types and Literals in Java. In this article, I am going to explain about the Type Casting in Java. Java for Testers…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained about expressing the floating-point and double literals in standard and scientific formats. In this article, I am going to explain about representing floating-point and…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained assigning different types of literals to the char data type variable. In this article, I am going to explain the different ways of expressing…
<<Previous Post << Complete Tutorial>> Next Post>> In the previous article, I have explained assigning different types of literals to the String non-primitive data type variable. In this article, I am going to explain assigning different types of…