Java J2EE (14736)
J2ME (151)
Java Related AllOther (507) public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
6 8280I want to know how to connect to DataBase from our MIDP application. I need just code for this
NIIT,
4 7935If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface?
8 15013How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?
1 5934In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?
5 18211
What is fail fast in java?
What is the difference between message driven beans and stateless session beans?
What is the meaning of odm?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What are ejbs used for?
How can you run a servlet program?
What is the JDBC syntax for using a literal or variable in a standard Statement?
Can java program run without jre?
How do you check if java is installed on windows command prompt?
What is the use of coding?
What is files manifesting?
How to determine SGA site?
Why does it take so much time to access an applet having swing components the first time?
What is hikari in spring boot? : Spring Boot
Explain the spring framework.