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 8506I want to know how to connect to DataBase from our MIDP application. I need just code for this
NIIT,
4 8080If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface?
8 15327How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?
1 6004In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?
5 18401
What is the difference between filters and interceptors ?
what is reflection api? How are they implemented?
How to sort array in descending order in java?
Find Best Job Vacancies across the world on Jooble!
Explain public static void main(string args[]) in java.
How to create a base64 decoder in java8?
What is a constructor overloading in java?
What is the first argument of the string array in main method?
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What is action chaining ?
What is parsing in java?
explain different ways of using thread? : Java thread
What if I write static public void instead of public static void?
What do you know about validation plugin ?
Are jvm’s platform independent?