How convert java file to jar files

cmd/designated folder/ jar cf name.jar *.* Create a file: META-INF/MANIFEST.MF Add a line: Main-Class: com.myco.calc.CalculatorDemo Include META-INF/MANIFEST.MF in calculator.jar Run with java -jar calculator.jar. To convert a Java file to a JAR (Java Archive) file in Advanced Java, you typically use the Java Archive (jar) tool provided by the Java Development Kit (JDK). Here are … Read more

What is stub?

Stubs are classes that provide replacement implementations for the actual classes client side component to send request to the server in RMI. In the context of advanced Java programming, a “stub” typically refers to a component used in remote method invocation (RMI). RMI is a mechanism that allows objects to invoke methods on objects running … Read more

What is Hashmap & Hashtable with example?

Hashtabel is original collection classes in java which was introduced as version 1.2 that HashMap permits null values in it, while Hashtable doesn’t. In advanced Java, HashMap and Hashtable are both data structures that store key-value pairs, but they have some differences. HashMap: Introduced in Java 1.2 as part of the Java Collections Framework. It … Read more

Difference between javascript and program

Difference between script and program: 1. A program has well defined structure, which must be followed even execute a single file. A script is a set of instructions (may be a single statement), which are complete in it-self. And execute independently as rest of the instructions. 2. Script is loose-type. It means variable’s data-type is not must. … Read more

Why Software Developers Choose Java

Java has been tested, refined, extended, and proven by a dedicated community. And numbering more than 6.5 million developers, it’s the largest and most active on the planet. With its versatility, efficiency, and portability, Java has become invaluable to developers by enabling them to: Write software on one platform and run it on virtually any … Read more