Java Fun Facts..!!

Java, the rock-solid platform remains immenselt popular and for many good reasons.
It is the go-to language for minnions of software developers.

JAVA WAS CALLED OAK AT THE BEGENNING
-Yes, you read it right.!! The original name was OAK and then it was eventually changed to JAVA bysun'd marketing dept. when Sun lawyers found there was already existing company with the name Oak.

YOU ARE PAID TO LEARN JAVA
- Yes.!! You are paid on an average of $80,000/anually. What are you waiting for statr learning Java.

JAVA WAS AN ACCIDENT
- James Gosling (creator) of  JAVA  was working at SunLabs back in 1992, then, his team was building a settop box started by Cleaning up C++ and wound up with a new language and runtime. Thus, the rock-solid platform independent and  object oriented came into begin.

SECOND MOST POPULAR LANGUAGE
- Even people argue that Java is the most favourite programming language among developers as a fact it 2nd  most popular language followed by C.

MOST POPULAR USER INTERFACE
- As of  now more than 3.3 billion mobile phones working on/with Java

FINAL IS NOT FINAL IN JAVA
- final class = The class cannot be extended
   final method = The method cannot be overridden
   final field = The field is constant
   final variable = The value of the variable canno be canged once assigned





HashMap Iteration methods

HashMap Iteration methods
Syntax:
HashMap<Object, Object> hm= new HashMap<Object, Object>();

Click here for Java code

Array Rotation Java Code

 ArrayRotation
INPUT  :  1, 2, 3, 4, 5, 6, 7, 8 
OUTPUT: 4 5 6 7 8 1 2 3 
Click here for Java code.

Sum of 2 elements in array with Target element

INPUT2, 3, 4, 2, 1, 10, -4, 3 
Output: 
Pairs are: (4 2)
Pairs are: (-4 10)
Pairs are: (3 3)
Time complexity: O(n)

Click here   for Java Code




Software Testing

White-Box Testing:
It is done at Developer side
Techniques: 1. Statement coverage. 2. Branch coverage 3 .. Path coverage

Black-Box testing:
Behavioural/ Specificational/Input-output Testing
Testers evaluate the functionality without looking the actual implementation
It can be applied to Unit-Testing, Integration
Testing is usually done under FUNCTIONALITY part only
Testers pass input to check the actual output

nihal kurre