How we can declare a static variable?
No Answer is Posted For this Question
Be the First to Post Answer
What does main method?
What is a void method java?
In a container there are 5 components. I want to display all the component names, how will you do that?
What is primitive data type in java?
What is the difference between a method and a procedure?
What is java in layman terms?
Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?
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"); } }
Write a program to print fibonacci series up to count 10.
Write the algorithm to check the number non-leaf nodes in a tree.
Explain different ways of creating a thread. Which one would you prefer and why?
What is a numeric literal?