Click here to Skip to main content
15,438,920 members
Home / Discussions / Java
   

Java

 
GeneralRe: Distribute software that uses Java Pin
Dave Kreskowiak9-Jul-22 5:43
mveDave Kreskowiak9-Jul-22 5:43 
Questionsolve the error Pin
Member 156672428-Jun-22 21:02
MemberMember 156672428-Jun-22 21:02 
RantRe: solve the error Pin
Richard Deeming8-Jun-22 21:19
mveRichard Deeming8-Jun-22 21:19 
AnswerRe: solve the error Pin
Richard MacCutchan8-Jun-22 22:56
mveRichard MacCutchan8-Jun-22 22:56 
AnswerRe: solve the error Pin
Sakshi Jain 202226-Jun-22 20:59
MemberSakshi Jain 202226-Jun-22 20:59 
GeneralRe: solve the error Pin
Richard MacCutchan26-Jun-22 21:41
mveRichard MacCutchan26-Jun-22 21:41 
GeneralRe: solve the error Pin
Peter_in_278026-Jun-22 22:19
professionalPeter_in_278026-Jun-22 22:19 
QuestionRunnable as a new object? Pin
Member 156629325-Jun-22 13:24
MemberMember 156629325-Jun-22 13:24 
Hello. I'm new to Java -- I want to learn, and am going through HFJ. I know it's an old book, but there are no later editions, so I may be behind the times.

I'm not a professional programmer, but I'm on a few programming forums, and I can't seem to get an answer to a question I have regarding the Runnable interface. I'm in chap 15 of the book re: threading, and I came across this statement in regards to starting a new thread:

public class MyRunnable implements Runnable

Runnable threadJob = new MyRunnable ()

What I don't understand is how can you make a new object with an interface, but use the class MyRunnable. Shouldn't it be MyRunnable thread = new MyRunnable ()?

I'm just confused. Runnable isn't a class, so what's going on?
AnswerRe: Runnable as a new object? Pin
Richard MacCutchan5-Jun-22 21:27
mveRichard MacCutchan5-Jun-22 21:27 
AnswerRe: Runnable as a new object? Pin
Gerry Schmitz6-Jun-22 13:47
mveGerry Schmitz6-Jun-22 13:47 
AnswerRe: Runnable as a new object? Pin
englebart7-Jul-22 16:10
professionalenglebart7-Jul-22 16:10 
QuestionConnect morpho biometric device with jav Pin
Member 156609363-Jun-22 3:10
MemberMember 156609363-Jun-22 3:10 
AnswerRe: Connect morpho biometric device with jav Pin
Richard MacCutchan3-Jun-22 9:06
mveRichard MacCutchan3-Jun-22 9:06 
Questionissue starting my ksql-server Pin
james michael May202225-May-22 13:20
Memberjames michael May202225-May-22 13:20 
AnswerRe: issue starting my ksql-server Pin
Richard MacCutchan25-May-22 22:03
mveRichard MacCutchan25-May-22 22:03 
QuestionHash Table implementation Pin
Member 156289598-May-22 18:52
MemberMember 156289598-May-22 18:52 
AnswerRe: Hash Table implementation Pin
Richard Deeming8-May-22 21:27
mveRichard Deeming8-May-22 21:27 
AnswerRe: Hash Table implementation Pin
Richard MacCutchan8-May-22 21:43
mveRichard MacCutchan8-May-22 21:43 
QuestionHi guys my code is not compiling as its showing cannot find symbol please help Pin
Member 1561125322-Apr-22 4:48
MemberMember 1561125322-Apr-22 4:48 
AnswerRe: Hi guys my code is not compiling as its showing cannot find symbol please help Pin
Dave Kreskowiak22-Apr-22 4:53
mveDave Kreskowiak22-Apr-22 4:53 
AnswerRe: Hi guys my code is not compiling as its showing cannot find symbol please help Pin
zemiak1231-May-22 13:06
Memberzemiak1231-May-22 13:06 
QuestionDevelopment of Wiki functionality in JSF project Pin
Dev Learning22-Apr-22 2:25
MemberDev Learning22-Apr-22 2:25 
QuestionRelated to resolve my error(Rearranging an array) Pin
Prateek Bajpai10-Apr-22 4:49
MemberPrateek Bajpai10-Apr-22 4:49 
AnswerRe: Related to resolve my error(Rearranging an array) Pin
Richard MacCutchan10-Apr-22 5:53
mveRichard MacCutchan10-Apr-22 5:53 
QuestionHOW TO USE JTABLE TO DISPLAY ALL RECORDS DATA FROM DATABASE USING JDBC Pin
Member 1558267928-Mar-22 21:48
MemberMember 1558267928-Mar-22 21:48 

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.