What is Java classpath

Published on

It is path to directory or list of directory where java classes and packages are located. When you run the java program, JVM will find and load classes. The class path will give direction to the JVM or class loader where to find those java classes. It can be set by environment variable or command … Continue reading What is Java classpath

What is Platform independent

Published on

A platform is a combination of hardware and software used to run software applications. A platform can be described simply as an operating system or computer architecture, or it could be the combination of both. Example: Microsoft windows, LINUX, UNIX and so on. The every operating system has unique specification to run the application. The … Continue reading What is Platform independent

What is Java Class file

Published on

It is the file (.class) that contains information about Java type, class, interface and so on. In other words, it is nothing but the bytecode. It is produced by java compiler when compiling the java source file (.java). Each class in source file is compiled into separate class files. It contains everything about the class … Continue reading What is Java Class file

What is Java bytecode

Published on

Java bytecode is compiled format of java source file. In other words it is a set of instruction used to execute on any environment. Java bytecode  is used to achieve Java platform independence. So Java code will run in any platform like Linux,Windows, Mac & Mobile devices Java bytecode is very secure and portable, so … Continue reading What is Java bytecode

How java is platform independent

Published on

When you run java source program, it compiles into bytecode. Then Java interpreter converts that bytecode into native language using JVM. The compiled program bytecode can be executed on any operating system. The bytecode concepts pay the way for java to achieve platform independent.

How to pass value from javascript to java?

Published on

Transferring the values between javascript and java can be done using the follow example 1)Pass value from jsp scriplet to javascript: <% String str=”Hello World”; %> <html> <head> <script language=”javascript”> function access(){ var s=”<%=str%>”; alert(s); } </script> </head> <body onload=”access()”> </body> </html> 2)Pass value from javascript to Jsp scriplet: <script> function get(){ var m=”Hello”; window.location.replace(“h.jsp?mess=”+m); … Continue reading How to pass value from javascript to java?

How to create password protected zip file using java

Published on

In java,We can create zip file but cannt set password using java.util.zip library We should use external library to create password protecting zip files. The list of available external libraries are http://www.lingala.net/zip4j/ http://www.chilkatsoft.com/java.asp http://code.google.com/p/winzipaes/ merkert.de/de/info/zipaes/src.zip