Explain different ways of passing arguments to sub-routine?
an argument is passed to a sub-routine by 2 differen tways
1.pass by value
2.pass by reference
| Is This Answer Correct ? | 6 Yes | 0 No |
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"); } }
How do you sort in descending order in java using collections sort?
Can a final method be overloaded?
Are primitives objects?
how to pass the parameters to applets?
Can a lock be acquired on a class?
what is difference between excute query ()and execute update ()?
What is difference between class and object in java?
Can a class be declared as protected?
Difference between static and dynamic class loading.
can we add two numbers without using arthematic operators? if possible how?
What does exp mean in math?