You are here:

Focus on Java

Recent Answers

2013-05-09 Java - What is The use of Thread class constructors?:

Those constructors are not useful for non-subclasses. If you don't subclass Thread you should use the Thread(Runnable target) or Thread(Runnable target, String name) constructor. If you subclass Thread

2013-05-06 Java - 2-what is the use of thread class constructors:

1. Creating a thread allows you to run multiple pieces of code at the same time. This can use multiple processors, or can allow one thread to continue while another one is waiting on a response or resource

2013-05-03 Java - java:

I don't see what JLabel, JButton, and JTextField have to do with drawing a line. Unless perhaps you want a bit more interactivity.    In any case you will want to create a custom component to draw the

2013-04-27 Java - synchronized block:

1. It is possible to put any object in a synchronized block.    When a thread enters a synchronization block, it is said to have a lock on that object. That lock is released once the block is left.   

2013-04-21 Java - Java applet for bouncing balls:

This is a bit more complex than bouncing off of walls as you need to determine 2 things:  1. Which balls if any are bouncing off each other?  2. What angle do they rebound at?    1. If you have a few balls

Categories

Browse Alphabetically

©2013 About.com. All rights reserved.