Month: January 2016

What is difference between wait and sleep methods?

Java Thread Life Cycle

What is difference between wait and sleep methods? In the java interview, frequently asking is What is difference between wait and sleep methods? Let’s understand main differences between wait and sleep methods in the Thread class in this article. Differences between wait and sleep sleep(): is a static method and It sends current running thread […]

How to detect the browser window size in JavaScript?

To determine the size of the browser window, use the following properties: in Internet Explorer (backward-compatibility mode): document.body.offsetWidth document.body.offsetHeight in Internet Explorer (standards mode, document.compatMode==’CSS1Compat’): document.documentElement.offsetWidth document.documentElement.offsetHeight in most other browsers – as well as IE9 (standards mode): window.innerWidth window.innerHeight (the page’s visible width/height) window.outerWidth window.outerHeight (the browser outer width/height) The following code sets the […]

Java keywords interview questions and answers

Classes and Objects interview questions

 Java keywords interview questions and answers Here I am going to sharing some of the important and frequently asking Java keywords interview questions and answers. So before going to java interview, refresh your mind go through the following Java keywords interview questions and answers. What is use of synchronized keyword? This keyword is used to […]