Java - Brief about java.net.JarURLConnection class

Brief about java.net.JarURLConnection class

This class is used to establish a connection to a JAR file or to an entry of the JAR file.

The syntax is
jar:!/{entry}
where the entry is an entry of the jar file such as .class

If the entry is omitted, it refers to the whole JAR file. The developer need to cast the generic URLConnection with JarURLConnecton like
JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
Explain how to create and use sockets in java
creating client socket : socket=new Socket('localhost',4000); //InetAddress.getByName ('127.0.0.1')...
JAVA Threading
Explain how to create thread in Java, What are native operating system threads?, What is a green thread?, What is a working thread?...
What is a naming service? - JNDI
What is a naming service? - Naming services map objects with names. It maps a reference to an object by a user friendly name...
Post your comment