Month: January 2016

Java Collection Framework Interview Questions and Answers

Here I am going to sharing list of Java Collection Framework Interview Questions and Answers. Which are asking in the interview frequently. Java Collection Framework Interview Questions and Answers   NarayanaswamyHello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in IT industry more than 7 years. NarayanaTutorial is my web technologies […]

What is struts 2 Architecture in java?

Struts 2 Architecture Struts 2 is an open-source web application framework for developing Java EE web applications and given by  Apache Software Foundation  in 2004 and formerly located under the Apache Jakarta Project and known as Jakarta Struts, it became a top-level Apache project in 2005. It uses and extends the Java Servlet API to […]

throw,throws,finally

Classes and Objects interview questions

We are going to explaining What is throw,throws,finally in java? throws throws clause in used to declare an exception and postpone the handling of a checked exception throws clause is used to declare checked and un-checked exceptions throws clause is followed by exception class names. throws clause is used in method Syntax public void  getData() […]

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 […]

How to detect browser details?

How to detect browser details? Each and every browsers(IE, Mozilla, Chrome, Safari etc….) having own properties and own setup. Then while creating website we need to check out cross browser. Some of the functionality in the website we have to write logic according the browser specific. Then how to detect browser details? Let’s us understand […]