Difference between overriding and overloading in java?
Name some classes present in java.util.regex package.
Why do we need strings in java?
What is an interoperable application in java ?
Explain different ways of creating a thread. Which one would you prefer and why?
Why do we need main method to execute a java program?
What is double data type?
Explain cookies?
how its run?
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"); } }
Is arraylist dynamic in java?
What is the range of the short type?
Where import statement is used in a java program?