How to connect to the Database from QTP ? Answer : Create an ADODB connection object which is required step for connecting to database as below…. View Answer
Difference between wait() and sleep() in java ? Answer : wait() Method of thread class goes in waiting state … View Answer
Difference between ClassNotFoundException and NoClassDefFoundError in java ? Answer : ClassNotFoundException and NoClassDefFoundError occur when a particular… View Answer
Difference between JDK JRE and JVM ? Answer : Java Development Kit is the core component… View Answer
Java program to find second largest number in an array ? Answer : Given an array of integers, our task is to write a program… View Answer
Java Program to reverse a Linked List ? Answer : A Linked list contains two things data and the address of the node each node…. View Answer
Why do we need garbage collection ? Answer : Java garbage collection is the method by which Java programs …. View Answer
Find number of occurrence of each of the unique characters in a string ? Answer : In this program an approach using Hashmap…. View Answer
How to optimally divide an array into two subarrays so that sum of elements in both are same ? Answer : Given an array of integers greater than zero… View Answer
How to check if a string contains the sequences of characters or not using java ? Answer : java.lang.String.contains() method searches the sequence of characters… View Answer
How to find next greater element for every element in an array ? Answer : In an array, to display the Next Greater Element (NGE)… View Answer
How to count number of characters in a string ? Answer : To count the amount of ‘x’ characters that are in a string… View Answer
Design Patterns in Java where input n=4 ? Answer : Pattern is an underlying structure that organizes surfaces… View Answer
How to Count Occurrence of a given Character in a String in Java ? Answer : The number of occurrences of each character to be count… View Answer
How to Copy One Array to Another in Java ? Answer : Java provides inbuilt methods to copy array… View Answer
How to check if two rectangles intersect or not ? Answer : The following standard Java coding practices to solve… View Answer
What is Linear Sort in Java ? Answer : One of the simplest Sorting techniques is a linear sort… View Answer
How to Decode URL content in Java ? Answer : The task to the reverse of URL encoding and distinct from URL parser is called Url Decoding.. View Answer
Difference Between static and dynamic binding in Java ? Answer : Events occur at compile time…. View Answer
How to find the Longest Palindrome String in Java ? Answer : A palindrome is a word, phrase, number, or other sequence of characters… View Answer