Random Tri Two Flashcards
1
Q
What are PATH and CLASSPATH?
A
PATH and CLASSPATH are two environment variables which need to be set in order to compile and run the java programs.
2
Q
What is multithreaded programming?
A
Multithreaded programming is one of the key features of java which allows multiple threads to execute their task simultaneously.
3
Q
What are the differences between static and non-static methods?
A
Static method is common to all instances of a class. Static methods are stored in the class memory. Where as non-static methods are stored in the object memory. Each instance of a class will have their own copy of non-static methods.