The real time issues while developing the java based applications. All question while learning the java. You can ask more question in comment and can expect the answers for it.
What are the predefined abstract classes in Java?
Get link
Facebook
X
Pinterest
Email
Other Apps
-
What are the predefined abstract classes in Java?
There are many but some of them are AbstractMap<K,V>, AbstractMap<K,V>,AbstractCollection<E>,AbstractList<E> ext.
How do I create an array of a string? Here is the example code. public class ArrayDemo { public static void main(String[] args) { String[] strArray = new String[2]; strArray[0] = "Hello"; strArray[1] = "World !"; System.out.println(strArray[0] +" "+strArray[1]); } } Output: Hello World !
How to know the compiled version of jar file or class file? To know the complied version of the jar file or class file below is the code. You have to run the MainClass and pass the file name in the argument. You have to put jar or class file in same path of MainClass file. import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.file.CopyOption; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.logging.Logger; public class CheckVersionUtil { private static final Logger LOGGER = Logger.getLogger(CheckVersionUtil.class.getSimpleName()); public static void copyToTemp(String destinationDir, String srcFile) throws IOException { LOGGER.info(...
What are all the Classes and Interfaces that are available in the collections in Java? You can check in eclipse ide. 1. Go to the interface Collection in eclipse. 2. right click it and see type hierarchy. You can see as below. You can check all the methods also.
Comments
Post a Comment