Posts

Showing posts from April, 2020

Copy Constructor in Java

Image
This example explains, How to implement copy constructor in Java, Copy Constructor has parameter which is same as class name. This is another type of constructor,after constructor overloading and constructor chaining. Copy Constructors are used for cloning an Object

Learn JDBC Programming from udemy

Image
Learning JDBC Programming From Udemy JDBC Examples Available in sampleqa.in

Corona virus message from Bollywood

Image
self-distancing even at home or outside.  Corona Virus Corona virus message from Bollywood :Amitabh Bachchan

LockDown in INDIA CoronaVirus

Image
Watch this Video lockdown and  CoronaVirus Video Lockdown in INDIA    

JDBC tutorial for Beginners: MySQL Transactions using JDBC in Java

Image
JDBC tutorial for Beginners: MySQL JDBC Transactions in Java, setautocommit(false), connection.commit() methods Online Java Training for beginners ,Java Tutorials,online java tutorials for beginners.

Java JDBC Complete Tutorial for Beginners

Image
Java JDBC Complete Tutorial for Beginners Java JDBC Complete Tutorial using MySQL Videos

greedy florist hackerrank in java #hackerrank

Image
Greedy Florist greedy algorithm implementation in Java Greedy Florist from hackerrank. this is another greedy algorithm implementation. A group of friends want to buy a bouquet of flowers. The florist wants to maximize his number of new customers and the money he makes. To do this, he decides he'll multiply the price of each flower by the number of that customer's previously purchased flowers plus . The first flower will be original price(0+1)*original price, , the next will be (1+1)*original price and so on.

Finding Even or odd Prime Palindrome using Lambda Expression in Java

Image
https://www.youtube.com/watch?v=791YpEFASNIhttps://www.youtube.com/watch?v=791YpEFASNI Finding Even or odd Prime Palindrome using Lambda Expression in JavaThis example finds given number is even or odd using Lamda Expression,Similarly Finds number is Prime or not using Lambda Expression and also finds  Given number is Palindrome or not using Lambda Expression Converted single number into an array,then filtered using predicate then calculated count , based on count returns odd palindrome  prime. Using Java 8 Feature.  Java 8 challenge tests , Java Lambda Expressions | HackerRank

String Compression | HackerRank

Image
String Compression is technique where repeated characters will be shortened.  for ex:  aaaab represented as a a4b  repeated characters will be replaced with count. Used 2 loops to scan all characters inner loop  finds repeated characters count, and also replaces repeated values with null characters, finally character array will have {ch}{n}. This String Compression Program Written in Java and tested will all input.

sorting string of dates using java 8 Lambda Expression

Image
sorting string of dates using java 8 Lambda Expression Sorting String array of Dates using Arrays.Sort method. Arrays.sort method takes two paratemeters String array of dates and Comparator Interface.Converting String Object into LocaldateTime Object using DateTimeFormatter.OfPatter. Format for the Date is d/M/y 10:20 PM that is AM or PM format. Used Both Comparator Anonymous class implementation and Java8 Lambda Expression to implement Comparator Interface for sorting DateTime Objects.

Perfect number program in java

Image
Check Given Number is  a Perfect Number or not. Perfect number is a Number whose divisors sum is equal to  Number(excluding that Number). you can find range of Perfect Numbers

Binary Search on two dimensional Arrays using java

Image
Binary Search Implementation on Java 2-dimensional Arrays.

java fibonacci program

Image
how to implement Fibonacci number or Fibonacci series in java using recursion.

odd even program in java

Image
check number is odd or even using java programming language

Binary search in java

Image