Showing posts from 2014

What is class loading in java - Internals of class loading in java

Lets start our discussion with fundamental question which was asked to me in Oracle Interview: What happens when we run a class file with main method in Java run environment(JRE) with command java <class_file_name> ags1 ,args2 ? OR What happens …

Annotations in Junit 4 and assert statements

In previous post we saw how to create sample Maven Junit project and used various annotations like @Test, @BeforeClass, @AfterClass, etc. Here we will list down all most commonly used annotations and its use. …

Unit testing with JUnit 4 ( Maven project with Junit 4)

Unit testing is an inexpensive and efficient way to produce error free code lines. Although there is a dedicated division in every organization who perform testing and do quality activity on production or staging environment , however it is developer…

JavaScript Quiz-2

1. JavaScript variable scoping : Understanding of scope of variable at Function level and Global. What will be displayed on console ? var name = "Nikhil" ; ​ ​ function display() { var name = "Zytham" ; // local variable …

JavaScript Quiz-1

1. What is outcome of  x == y ?  var x = "ZYTHAM" ; var y = new String ( "ZYTHAM" ); x==y //prints true/false Answer : true == compares values of x and y . Since x and y both has equal values. 2. What will…

Load More
That is All