if i have a class that can extend abs class n implement interface...and it doesn't have to achieve inheritance ,doesn't have to extend any other class then which 1 should i use between extending
What is marker sweeper algorithm in garbage collection?
Latest Answer: "Mark the unused object for garbage collection and collect it."As per the algorithum there will be two thread.One will mark all the unreferenced object for garbage collection and the other will reclaim the marked object memory. ...
Explain why we go for interface instead of multiple inheritnace?
Followign down error i get when i try to login to my page.here my front login page is open and then when i try to login that time this error i reciving.here my server is AIX server and TOMCAT webserver
Write a code that returns the number of names in a given array that end in either "ie" or "y"?
what is phantom memory and how it is useful?
Latest Answer: A phantom reference lets you do final touch up closing on an object, even after it has been declared dead — no longer referenced by any live object.Java has four orders of strength in holding onto Objects. In descending order from strongest to weakest ...
I need an algorithm for some program. I'll take some number (say 'n'), then i should print the numbers in spiral shape starting from square(n). Can any one pls help me..Ex: if n=3, it should
Latest Answer: One of possible solutions:public class NumberSpiralShape { /*** @param args*/public static void main(String[] args) { // TODO Auto-generated method stub int n = 3, i, side = n, x=0, y=0;int tab [][]= new int [n][n]; i=n*n;while(i>=1){for(int ...
how to convert or achieve the program from .class file??
Latest Answer: Using jadclipse pluging installed in ur IDE,u can view the class files like java files, but u will not be able to edit.To make a class file into java file in editable format, get the jad.exe filein crompt prompt, goto the file location, keep the jad.exe ...
What is Nullpointer Exception How it will be reduced
Latest Answer: There are many reasons to get a Null pointer Exception . Burn it in ur Brain : NullPointerException can occur only on OBJECTS . not primitives.the above said answer holds a good example .Example 2: String s = null; System.out.println(s.concat("asdad") ...
View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Go Top