In this Java tutorial we will see about what PBE is and how we can use it in Java to encrypt and decrypt a file. In Password based encryption (PBE), a password is chosen and it is used along with a generated salt (key) to encrypt. Then the same password is used along with the […]
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
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?
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 Java and cookies whether enabled or not?
How to detect Java and cookies whether enabled or not? Most of the websites using cookies to store data in the temporary file and java. Suppose in the system where you are accessing application cookies are disabled then what will happen? The application will not store any data to handle the request so that end […]
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 […]
How to detect operating system on the client machine?
How to detect operating system on the client machine? To detect the operating system on the client machine, your script can analyze the value of navigator.appVersion or navigator.userAgent. Below is a simple example of a script that sets the variable OSName to reflect the actual client OS. // This script sets OSName variable as follows: […]
Java keywords interview questions and answers
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 […]
Java basics interview questions and answers
Why should I choose Java software development? What are the Pros and Cons? Java Pros It’s free cost, download it and start creating application. Open source with quite large community base. Lots of available third party libraries, frameworks & IDE for fast development cycles(Spring, Hibernate, Struts, Eclipse, IntelliJ). Platform independent, write once run on most […]