Click here to Skip to main content
15,867,956 members
Home / Discussions / Java
   

Java

 
AnswerRe: java Pin
Richard MacCutchan22-Oct-18 5:55
mveRichard MacCutchan22-Oct-18 5:55 
GeneralRe: java Pin
Member 1402833822-Oct-18 6:56
Member 1402833822-Oct-18 6:56 
GeneralRe: java Pin
Richard MacCutchan22-Oct-18 8:42
mveRichard MacCutchan22-Oct-18 8:42 
GeneralRe: java. Troll Pin
Mycroft Holmes22-Oct-18 13:02
professionalMycroft Holmes22-Oct-18 13:02 
QuestionRuntime Error showing NumberFormatException: Kindly solve the error Pin
Member 1402130020-Oct-18 3:07
Member 1402130020-Oct-18 3:07 
QuestionRe: Runtime Error showing NumberFormatException: Kindly solve the error Pin
Richard MacCutchan20-Oct-18 4:05
mveRichard MacCutchan20-Oct-18 4:05 
AnswerRe: Runtime Error showing NumberFormatException: Kindly solve the error Pin
Afzaal Ahmad Zeeshan20-Oct-18 4:29
professionalAfzaal Ahmad Zeeshan20-Oct-18 4:29 
QuestionFinalize method in java Pin
ashutoshgadgil16-Oct-18 18:16
ashutoshgadgil16-Oct-18 18:16 
hello,

If we call gc() method in our program on writing System.gc() and define finalize() in the same class . finalize() method exists in Object class so if i write the following code then i don't extend the Object class using extends keyword . So how the finalize() method is overridden in our class?? Or without using extends keyword how it it possible that the finalize() method is overridden??

public class fin {

	public void finalize()
	{
		System.out.println("finalize called");
	}
	
	public static void main(String[] args) {
		
		fin f1=new fin();
		fin f2=new fin();
		
		f1=null;
		f2=null;
		System.gc();
	}

}

QuestionRe: Finalize method in java Pin
Richard MacCutchan16-Oct-18 21:57
mveRichard MacCutchan16-Oct-18 21:57 
AnswerRe: Finalize method in java Pin
ashutoshgadgil16-Oct-18 22:29
ashutoshgadgil16-Oct-18 22:29 
GeneralRe: Finalize method in java Pin
Richard MacCutchan16-Oct-18 23:07
mveRichard MacCutchan16-Oct-18 23:07 
GeneralRe: Finalize method in java Pin
ashutoshgadgil16-Oct-18 23:11
ashutoshgadgil16-Oct-18 23:11 
QuestionInspecting java application (Java spy, Java object inspector) - Automation Pin
Member 1383827315-Oct-18 18:58
Member 1383827315-Oct-18 18:58 
RantJava, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
nated09913-Oct-18 18:41
nated09913-Oct-18 18:41 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Richard MacCutchan14-Oct-18 1:35
mveRichard MacCutchan14-Oct-18 1:35 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
#realJSOP5-Nov-18 4:27
mve#realJSOP5-Nov-18 4:27 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
nated09927-Dec-18 8:27
nated09927-Dec-18 8:27 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Mycroft Holmes14-Oct-18 13:12
professionalMycroft Holmes14-Oct-18 13:12 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Eddy Vluggen15-Oct-18 0:53
professionalEddy Vluggen15-Oct-18 0:53 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
#realJSOP5-Nov-18 4:33
mve#realJSOP5-Nov-18 4:33 
QuestionDaemon Thread Pin
ashutoshgadgil11-Oct-18 21:50
ashutoshgadgil11-Oct-18 21:50 
AnswerRe: Daemon Thread Pin
Richard MacCutchan11-Oct-18 22:34
mveRichard MacCutchan11-Oct-18 22:34 
QuestionJava SE 8 OCA Exam Pin
Willem Voigt9-Oct-18 1:34
Willem Voigt9-Oct-18 1:34 
AnswerRe: Java SE 8 OCA Exam Pin
Richard MacCutchan9-Oct-18 5:29
mveRichard MacCutchan9-Oct-18 5:29 
QuestionThreads Priority Pin
ashutoshgadgil8-Oct-18 22:46
ashutoshgadgil8-Oct-18 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.