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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly