Profile cover photo
Profile photo
IT TIME PASS
3 followers -
Programmer, YouTub, Graphic Design
Programmer, YouTub, Graphic Design

3 followers
About
Posts

Post has attachment
Server import java.io.; import java.net.; public class Server {       public static void main(String arg[])       {             try             {                   System.out.println("Running Server");                   ServerSocket ss=new…
Add a comment...

Post has attachment
import java.net.InetAddress; class IPFinder {       public static void main(String arg[])       {             try             {                   InetAddress address=InetAddress.getByName(arg[0]);                   System.out.println("IP Address is…
Add a comment...

Post has attachment
import java.applet.; import java.awt.; /*                         */ public class ParamApplet extends Applet {       int a,b,c;       public void init()       {             setBackground(Color.red);             setForeground(Color.yellow);            …
Add a comment...

Post has attachment
Add a comment...

Post has attachment
class Customer1 {       int amount=10000;       public synchronized void withdraw(int amount)       {             if(this.amount<amount)             {                   System.out.println("Less Balance Waiting For Deposit");                   try…
Add a comment...

Post has attachment
Multi-threading problem – class Table {       public void printTable(int n)       {             for(int i=1;i<=10;i++)             {                   System.out.println(n*i);                   try                   {                        …
Add a comment...

Post has attachment
Using Simple Method – class UserThread extends Thread {       public UserThread(String name)       {             super(name);       }       public void run()       {             System.out.println("run() method is invoked from "+ getName() +" thread.");…
Add a comment...

Post has attachment
class MyThread1 extends Thread {       public void run()       {             System.out.print("Vikrant ");       } } class MyThread2 extends Thread {       public void run()       {             System.out.print("Kumar ");       } } class MultiThread {…
Add a comment...

Post has attachment
class UserThread extends Thread {       public void run()       {             System.out.println("Task 1");       } } class Indirect {       public static void main(String arg[])       {             UserThread x=new UserThread();             x.start();…
Add a comment...

Post has attachment
class ThreadWay implements Runnable {       static       {             Thread t=Thread.currentThread();             System.out.println(t.getName());       }       public void run()       {             Thread t=Thread.currentThread();            …
Add a comment...
Wait while more posts are being loaded