Karan Bijani

-1

votes
1

answer
21

views

JavaFX update progress bar and wait for threads to complete

I'm trying to update a progress bar in Java FX. My first problem was that the window said 'not responding' instead of actually updating. It just froze and then after the tasks were done, the progress bar became full. So I found out that I had to use multithreading and implemented it like this. overa...
Karan Bijani
1

votes
2

answer
31

views

Java - which function is called when inheritance, polymorphism, overloading and overriding are all involved?

I have this question involving inheritance, polymorphism, overloading and overriding. I understand all these terms but not sure how they work here. Here's the code: class A { public String show(D obj) {return 'A and D';} public String show(A obj) {return 'A and A';} } class B extends A { public Stri...
Karan Bijani