Click here to Skip to main content
15,790,565 members
Home / Discussions / Java
   

Java

 
AnswerRe: java Pin
Richard MacCutchan22-Oct-18 6:55
mveRichard MacCutchan22-Oct-18 6:55 
GeneralRe: java Pin
Member 1402833822-Oct-18 7:56
Member 1402833822-Oct-18 7:56 
GeneralRe: java Pin
Richard MacCutchan22-Oct-18 9:42
mveRichard MacCutchan22-Oct-18 9:42 
GeneralRe: java. Troll Pin
Mycroft Holmes22-Oct-18 14:02
professionalMycroft Holmes22-Oct-18 14:02 
QuestionRuntime Error showing NumberFormatException: Kindly solve the error Pin
Member 1402130020-Oct-18 4:07
Member 1402130020-Oct-18 4:07 
QuestionRe: Runtime Error showing NumberFormatException: Kindly solve the error Pin
Richard MacCutchan20-Oct-18 5:05
mveRichard MacCutchan20-Oct-18 5:05 
AnswerRe: Runtime Error showing NumberFormatException: Kindly solve the error Pin
Afzaal Ahmad Zeeshan20-Oct-18 5:29
professionalAfzaal Ahmad Zeeshan20-Oct-18 5:29 
QuestionFinalize method in java Pin
ashutoshgadgil16-Oct-18 19:16
ashutoshgadgil16-Oct-18 19: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 22:57
mveRichard MacCutchan16-Oct-18 22:57 
AnswerRe: Finalize method in java Pin
ashutoshgadgil16-Oct-18 23:29
ashutoshgadgil16-Oct-18 23:29 
GeneralRe: Finalize method in java Pin
Richard MacCutchan17-Oct-18 0:07
mveRichard MacCutchan17-Oct-18 0:07 
GeneralRe: Finalize method in java Pin
ashutoshgadgil17-Oct-18 0:11
ashutoshgadgil17-Oct-18 0:11 
QuestionInspecting java application (Java spy, Java object inspector) - Automation Pin
Member 1383827315-Oct-18 19:58
Member 1383827315-Oct-18 19:58 
RantJava, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
nated09913-Oct-18 19:41
nated09913-Oct-18 19:41 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Richard MacCutchan14-Oct-18 2:35
mveRichard MacCutchan14-Oct-18 2:35 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
#realJSOP5-Nov-18 5:27
mve#realJSOP5-Nov-18 5:27 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
nated09927-Dec-18 9:27
nated09927-Dec-18 9:27 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Mycroft Holmes14-Oct-18 14:12
professionalMycroft Holmes14-Oct-18 14:12 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Eddy Vluggen15-Oct-18 1:53
professionalEddy Vluggen15-Oct-18 1:53 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
#realJSOP5-Nov-18 5:33
mve#realJSOP5-Nov-18 5:33 
QuestionDaemon Thread Pin
ashutoshgadgil11-Oct-18 22:50
ashutoshgadgil11-Oct-18 22:50 
AnswerRe: Daemon Thread Pin
Richard MacCutchan11-Oct-18 23:34
mveRichard MacCutchan11-Oct-18 23:34 
QuestionJava SE 8 OCA Exam Pin
Willem Voigt9-Oct-18 2:34
Willem Voigt9-Oct-18 2:34 
AnswerRe: Java SE 8 OCA Exam Pin
Richard MacCutchan9-Oct-18 6:29
mveRichard MacCutchan9-Oct-18 6:29 
QuestionThreads Priority Pin
ashutoshgadgil8-Oct-18 23:46
ashutoshgadgil8-Oct-18 23: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.