Click here to Skip to main content
14,236,057 members
   

Java

 
AnswerRe: java Pin
Richard MacCutchan22-Oct-18 5:55
protectorRichard MacCutchan22-Oct-18 5:55 
GeneralRe: java Pin
Member 1402833822-Oct-18 6:56
memberMember 1402833822-Oct-18 6:56 
GeneralRe: java Pin
Richard MacCutchan22-Oct-18 8:42
protectorRichard MacCutchan22-Oct-18 8:42 
GeneralRe: java. Troll Pin
Mycroft Holmes22-Oct-18 13:02
memberMycroft Holmes22-Oct-18 13:02 
QuestionRuntime Error showing NumberFormatException: Kindly solve the error Pin
Member 1402130020-Oct-18 3:07
memberMember 1402130020-Oct-18 3:07 
QuestionRe: Runtime Error showing NumberFormatException: Kindly solve the error Pin
Richard MacCutchan20-Oct-18 4:05
protectorRichard MacCutchan20-Oct-18 4:05 
AnswerRe: Runtime Error showing NumberFormatException: Kindly solve the error Pin
Afzaal Ahmad Zeeshan20-Oct-18 4:29
mveAfzaal Ahmad Zeeshan20-Oct-18 4:29 
QuestionFinalize method in java Pin
ashutoshgadgil16-Oct-18 18:16
memberashutoshgadgil16-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
protectorRichard MacCutchan16-Oct-18 21:57 
AnswerRe: Finalize method in java Pin
ashutoshgadgil16-Oct-18 22:29
memberashutoshgadgil16-Oct-18 22:29 
GeneralRe: Finalize method in java Pin
Richard MacCutchan16-Oct-18 23:07
protectorRichard MacCutchan16-Oct-18 23:07 
GeneralRe: Finalize method in java Pin
ashutoshgadgil16-Oct-18 23:11
memberashutoshgadgil16-Oct-18 23:11 
QuestionInspecting java application (Java spy, Java object inspector) - Automation Pin
Member 1383827315-Oct-18 18:58
memberMember 1383827315-Oct-18 18:58 
RantJava, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
nated09913-Oct-18 18:41
membernated09913-Oct-18 18:41 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Richard MacCutchan14-Oct-18 1:35
protectorRichard 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
membernated09927-Dec-18 8:27 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Mycroft Holmes14-Oct-18 13:12
memberMycroft Holmes14-Oct-18 13:12 
GeneralRe: Java, Eclipse, Windowbuilder regarding a homemade Desktop App Pin
Eddy Vluggen15-Oct-18 0:53
mveEddy 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
memberashutoshgadgil11-Oct-18 21:50 
AnswerRe: Daemon Thread Pin
Richard MacCutchan11-Oct-18 22:34
protectorRichard MacCutchan11-Oct-18 22:34 
QuestionJava SE 8 OCA Exam Pin
Willem Voigt9-Oct-18 1:34
memberWillem Voigt9-Oct-18 1:34 
AnswerRe: Java SE 8 OCA Exam Pin
Richard MacCutchan9-Oct-18 5:29
protectorRichard MacCutchan9-Oct-18 5:29 
QuestionThreads Priority Pin
ashutoshgadgil8-Oct-18 22:46
memberashutoshgadgil8-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.