What is a static method?
Answer / Kavita Tiwari
A static method in Java is a method that belongs to the class itself, rather than to any instance of the class. It can be called using the class name instead of an object of that class. Static methods cannot access non-static variables or call non-static methods directly because they are not associated with an object instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a java singleton?
What is the difference between map and flatmap in java?
What is use of jpa?
What is rxjava2?
Can optional be null?
What is gwt in java?
For each of the following program segments,give a big zero analysis for the running time 1.For (i=0;i<m;i++) { // } 2.For (j=0;j<i;j++)
1 Answers St. Pauls University,
What is the singleton class in java?
How to implement Thread
What is singleton pattern in java?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.