How is string stored in java?
No Answer is Posted For this Question
Be the First to Post Answer
can we access the method of class without creating the object of the class
How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?
What is a protected class in java?
What is meant by packages?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What are different access specifiers in java?
how can we synchronize Hash map?
How the threads are synchronized?
Is java map thread safe?
What string is utf8?
Explain public static void main(string args[]) in java.
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }