├── A.class ├── B.class ├── InvalidAccountException.class ├── MultiThreading ├── atmimp.class ├── atmservice.class ├── jav155_1.java ├── jav155_2.java ├── jav155_3.java ├── jav175_1.java ├── jav175_2.java ├── java175_3.java ├── mainclass.class ├── math.class ├── mythread.class ├── mythread_1.class ├── mythread_2.class ├── square.class ├── testthread$1.class ├── testthread$2.class └── testthread.class ├── adder.class ├── adderimp.class ├── applet ├── app.class ├── app.html ├── app.java ├── firstapp.class ├── firstapp.html └── firstapp.java ├── atmimp.class ├── atmservice.class ├── awt ├── calc.class ├── empframe.class ├── firstframe.java ├── jav16_1.java ├── jav26_1.java ├── myframe.class ├── secondframe.java └── testframe.class ├── bank.class ├── c.class ├── circle.class ├── constrcutor_notes.txt ├── custexp.class ├── custexp.java ├── emp.class ├── geo.class ├── interface ├── bankimp.class ├── bus.class ├── car.class ├── intprg.java ├── journey.class ├── pnb.class ├── rbi.class ├── sbi.class ├── sbm.class ├── train.class ├── travelimp.class ├── travelimp.java └── vechile.class ├── jav105_1.java ├── jav105_2.java ├── jav115_1.java ├── jav115_2.java ├── jav115_3.java ├── jav125_1.java ├── jav155_1.java ├── jav155_2.java ├── jav155_3.java ├── jav15_1.java ├── jav175_1.java ├── jav175_2.java ├── jav194_1.java ├── jav214_1.java ├── jav244_1.java ├── jav254_1.java ├── jav254_2.java ├── jav25_1.java ├── jav264_1.java ├── jav264_2.java ├── jav2704_1.java ├── jav35_1.java ├── java175_3.java ├── javaprg174_1.java ├── javaprg174_2.java ├── javaprg174_4.java ├── javprg114.java ├── javprg124.java ├── javprg174.java ├── javprg184_1.java ├── mainclass.class ├── math.class ├── mathprg.class ├── mathprg.java ├── mypack ├── math.class └── math.java ├── mythread.class ├── mythread_1.class ├── mythread_2.class ├── pc.class ├── pcthread$1.class ├── pcthread$2.class ├── pcthread.class ├── pcthread.java ├── ppt ├── Exception in JAVA.pptx └── multithreading.pptx ├── privatestudent.class ├── rectangle.class ├── regularstudent.class ├── shape.class ├── square.class ├── student.class ├── test.class ├── testadder.class ├── testemp.class ├── testexp.class ├── testinh.class ├── testinht.class ├── testpack.class ├── testpack.java ├── testprg.java ├── testshape.class ├── teststudent.class ├── testthread$1.class ├── testthread$2.class ├── testthread.class ├── triangle.class └── voter.class /A.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/A.class -------------------------------------------------------------------------------- /B.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/B.class -------------------------------------------------------------------------------- /InvalidAccountException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/InvalidAccountException.class -------------------------------------------------------------------------------- /MultiThreading/atmimp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/atmimp.class -------------------------------------------------------------------------------- /MultiThreading/atmservice.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/atmservice.class -------------------------------------------------------------------------------- /MultiThreading/jav155_1.java: -------------------------------------------------------------------------------- 1 | class mythread_1 extends Thread 2 | { 3 | public void run() 4 | { 5 | int i; 6 | for(i=1;i<=10;i++) 7 | { 8 | try 9 | { 10 | System.out.println("Value of i is "+i); 11 | Thread.sleep(1000); 12 | } catch(Exception e) 13 | { 14 | } 15 | 16 | } 17 | 18 | } 19 | } 20 | 21 | class mythread_2 extends Thread 22 | { 23 | public void run() 24 | { 25 | int j; 26 | for(j=10;j>0;j--) 27 | { 28 | try 29 | { 30 | System.out.println("Value of j is "+j); 31 | Thread.sleep(1000); 32 | } catch(Exception e) 33 | { 34 | } 35 | } 36 | } 37 | 38 | 39 | } 40 | 41 | class testthread 42 | { 43 | public static void main(String args[]) 44 | { 45 | mythread_1 mt1=new mythread_1(); 46 | mythread_2 mt2=new mythread_2(); 47 | mt1.start(); 48 | mt2.start(); 49 | 50 | } 51 | } -------------------------------------------------------------------------------- /MultiThreading/jav155_2.java: -------------------------------------------------------------------------------- 1 | class mythread implements Runnable 2 | { 3 | public void run() 4 | { 5 | int i; 6 | for(i=1;i<=20;i++) 7 | { 8 | if (i%2==0) 9 | System.out.println(i +" is even number "+Thread.currentThread()); 10 | } 11 | 12 | } 13 | 14 | } 15 | class mythread_1 implements Runnable 16 | { 17 | public void run() 18 | { 19 | int j; 20 | for(j=100;j<=120;j++) 21 | { 22 | if (j%2==0) 23 | System.out.println(j +" is even number "+Thread.currentThread()); 24 | } 25 | 26 | } 27 | 28 | } 29 | 30 | 31 | 32 | class testthread 33 | { 34 | public static void main(String args[]) 35 | { 36 | 37 | mythread mt1=new mythread(); //First Task 38 | mythread_1 mt2=new mythread_1();//Second Task 39 | Thread t1=new Thread(mt1,"First Thread"); 40 | Thread t2=new Thread(mt2,"Second Thread"); 41 | Thread t3=new Thread(mt1,"Third Thread"); 42 | t1.start(); 43 | t2.start(); 44 | t3.start(); 45 | } 46 | } -------------------------------------------------------------------------------- /MultiThreading/jav155_3.java: -------------------------------------------------------------------------------- 1 | class testthread 2 | { 3 | public static void main(String args[]) 4 | { 5 | new Thread() 6 | { 7 | public void run() 8 | { 9 | int i; 10 | for(i=1;i<10;i++) 11 | { 12 | System.out.println("Value of i is---->"+i); 13 | } 14 | } 15 | }.start(); 16 | 17 | new Thread() 18 | { 19 | public void run() 20 | { 21 | int j; 22 | for(j=10;j>0;j--) 23 | { 24 | System.out.println("Value of j is---> "+j); 25 | } 26 | } 27 | }.start(); 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /MultiThreading/jav175_1.java: -------------------------------------------------------------------------------- 1 | interface square 2 | { 3 | public int calculate(int x); 4 | } 5 | 6 | class testthread 7 | { 8 | public static void main(String args[]) 9 | { 10 | square s1=(x)->x*x*x; 11 | System.out.println(s1.calculate(2)); 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /MultiThreading/jav175_2.java: -------------------------------------------------------------------------------- 1 | class testthread 2 | { 3 | static int x=10; 4 | 5 | public static void main(String args[]) 6 | { 7 | /*new Thread(new Runnable() 8 | { 9 | public void run() 10 | { 11 | System.out.println("inside thread"); 12 | }} 13 | ).start();*/ 14 | 15 | 16 | new Thread( 17 | ()->{ 18 | for(int i=1;i<10;i++) 19 | System.out.println("Value of i is "+i); 20 | System.out.println("value of x is "+ ++x); 21 | } 22 | ).start(); 23 | 24 | new Thread( 25 | ()->{ 26 | for(int j=10;j>0;j--) 27 | System.out.println("Value of j is "+j); 28 | System.out.println("value of x is "+ ++x); 29 | 30 | } 31 | ).start(); 32 | 33 | 34 | 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /MultiThreading/java175_3.java: -------------------------------------------------------------------------------- 1 | class atmservice implements Runnable 2 | { 3 | int balance=1000; 4 | public void run() 5 | { 6 | Thread t=Thread.currentThread(); 7 | getMoney(t.getName()); 8 | } 9 | synchronized void getMoney(String name) 10 | { 11 | System.out.println("Login by user "+name); 12 | if(balance ==1000) 13 | { 14 | System.out.println("Transaction Done by "+name); 15 | balance=balance-1000; 16 | System.out.println("Rs 1000 withdraw by "+name + "and new balance is "+balance); 17 | } 18 | else 19 | { 20 | System.out.println("Insufficent Balance for " +name); 21 | } 22 | } 23 | } 24 | 25 | class atmimp 26 | { 27 | public static void main(String args[]) 28 | { 29 | atmservice a1=new atmservice(); 30 | Thread t1=new Thread(a1); 31 | Thread t2=new Thread(a1); 32 | t1.setName("Rajesh"); 33 | t2.setName("Vinod"); 34 | t1.start(); 35 | t2.start(); 36 | 37 | 38 | 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /MultiThreading/mainclass.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/mainclass.class -------------------------------------------------------------------------------- /MultiThreading/math.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/math.class -------------------------------------------------------------------------------- /MultiThreading/mythread.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/mythread.class -------------------------------------------------------------------------------- /MultiThreading/mythread_1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/mythread_1.class -------------------------------------------------------------------------------- /MultiThreading/mythread_2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/mythread_2.class -------------------------------------------------------------------------------- /MultiThreading/square.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/square.class -------------------------------------------------------------------------------- /MultiThreading/testthread$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/testthread$1.class -------------------------------------------------------------------------------- /MultiThreading/testthread$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/testthread$2.class -------------------------------------------------------------------------------- /MultiThreading/testthread.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/MultiThreading/testthread.class -------------------------------------------------------------------------------- /adder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/adder.class -------------------------------------------------------------------------------- /adderimp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/adderimp.class -------------------------------------------------------------------------------- /applet/app.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/applet/app.class -------------------------------------------------------------------------------- /applet/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /applet/app.java: -------------------------------------------------------------------------------- 1 | import java.applet.Applet; 2 | import java.awt.Graphics; 3 | import java.awt.*; 4 | 5 | public class app extends Applet 6 | { 7 | Color c1,c2; 8 | public void init() 9 | { 10 | c1=new Color(255,0,0); 11 | c2=new Color(0,0,255); 12 | System.out.println("Inside init method"); 13 | } 14 | 15 | public void start() 16 | { 17 | System.out.println("Inside start method"); 18 | } 19 | 20 | public void paint(Graphics g) 21 | { 22 | //setBackground(Color.RED); 23 | g.setColor(c1); 24 | g.drawString("Welcome to applet",100,100); 25 | g.setColor(c1); 26 | //g.fillRect(200,200,100,50); 27 | //g.drawOval(100,100,50,50); 28 | //g.fillOval(100,100,50,50); 29 | //g.drawLine(25,25,300,25); 30 | g.fillArc(100,100,50,50,0,180); 31 | g.setColor(c2); 32 | 33 | g.fillArc(100,100,50,50,180,180); 34 | System.out.println("Inside paint method"); 35 | } 36 | public void stop() 37 | { 38 | System.out.println("Inside stop method"); 39 | } 40 | public void destroy() 41 | { 42 | System.out.println("Inside destroy method"); 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /applet/firstapp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/applet/firstapp.class -------------------------------------------------------------------------------- /applet/firstapp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /applet/firstapp.java: -------------------------------------------------------------------------------- 1 | import java.applet.Applet; 2 | import java.awt.Graphics; 3 | public class firstapp extends Applet 4 | { 5 | public void init() 6 | { 7 | System.out.println("Inside init method"); 8 | } 9 | public void start() 10 | { 11 | System.out.println("Inside start method"); 12 | } 13 | public void paint(Graphics g) 14 | { 15 | g.drawRect(10,10,100,300); 16 | g.fillRect(10,10,100,300); 17 | g.drawString("Welcome to Java Applet",100,100); 18 | System.out.println("Inside paint method"); 19 | } 20 | 21 | public void stop() 22 | { 23 | System.out.println("Inside stop method"); 24 | } 25 | public void destroy() 26 | { 27 | System.out.println("Inside destroy method"); 28 | } 29 | 30 | 31 | } -------------------------------------------------------------------------------- /atmimp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/atmimp.class -------------------------------------------------------------------------------- /atmservice.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/atmservice.class -------------------------------------------------------------------------------- /awt/calc.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/awt/calc.class -------------------------------------------------------------------------------- /awt/empframe.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/awt/empframe.class -------------------------------------------------------------------------------- /awt/firstframe.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | class empframe extends Frame 3 | { 4 | 5 | empframe(String title) 6 | { 7 | setVisible(true); 8 | setSize(800,600); 9 | setTitle(title); 10 | setLayout(null); 11 | } 12 | 13 | void designform() 14 | { 15 | Label l1=new Label("Enter the First Number"); 16 | Label l2=new Label("Enter the Second Number"); 17 | TextField tf1=new TextField(20); 18 | TextField tf2=new TextField(20); 19 | 20 | Button b1=new Button("Add"); 21 | Button b2=new Button("Subtract"); 22 | 23 | 24 | l1.setBounds(200,100,150,20); 25 | l2.setBounds(200,125,150,20); 26 | 27 | tf1.setBounds(375,100,150,20); 28 | tf2.setBounds(375,125,150,20); 29 | 30 | b1.setBounds(200,150,150,20); 31 | b2.setBounds(350,150,150,20); 32 | 33 | 34 | add(l1); 35 | add(l2); 36 | add(tf1); 37 | add(tf2); 38 | add(b1); 39 | add(b2); 40 | 41 | } 42 | } 43 | 44 | 45 | class myframe 46 | { 47 | public static void main(String args[]) 48 | { 49 | empframe e1=new empframe("Employee Profile Page"); 50 | e1.designform(); 51 | 52 | } 53 | } -------------------------------------------------------------------------------- /awt/jav16_1.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | 4 | 5 | class myframe extends Frame implements MouseListener,MouseMotionListener 6 | { 7 | int x,y; 8 | 9 | myframe() 10 | { 11 | 12 | setSize(800,600); 13 | setVisible(true); 14 | addMouseListener(this); 15 | addMouseMotionListener(this); 16 | } 17 | public void paint(Graphics g) 18 | { 19 | g.drawString("X: "+x+"Y: "+y,x,y); 20 | //g.drawRect(10,10,100,100); 21 | 22 | } 23 | 24 | public void mouseMoved(MouseEvent me) 25 | { 26 | 27 | setBackground(Color.GREEN); 28 | x=me.getX(); 29 | y=me.getY(); 30 | repaint(); 31 | System.out.println("Inside Mouse moved Method"+me.getX()+" "+me.getY()); 32 | 33 | } 34 | 35 | public void mouseDragged(MouseEvent me) 36 | { 37 | setBackground(Color.ORANGE); 38 | System.out.println("Inside Mouse dragged Method"); 39 | 40 | } 41 | 42 | public void mouseExited(MouseEvent me) 43 | { 44 | setBackground(Color.WHITE); 45 | System.out.println("Inside Mouse Exit Method"); 46 | 47 | } 48 | public void mouseEntered(MouseEvent me) 49 | { 50 | setBackground(Color.RED); 51 | System.out.println("Inside Mouse enter Method"); 52 | 53 | } 54 | 55 | public void mouseReleased(MouseEvent me) 56 | { 57 | setBackground(Color.BLUE); 58 | 59 | System.out.println("Inside Mouse released Method"); 60 | } 61 | public void mousePressed(MouseEvent me) 62 | { 63 | setBackground(Color.BLACK); 64 | 65 | System.out.println("Inside Mouse pressed Method"); 66 | 67 | } 68 | 69 | public void mouseClicked(MouseEvent me) 70 | { 71 | System.out.println("Inside Mouse clicked Method"); 72 | 73 | } 74 | 75 | } 76 | 77 | class testframe 78 | { 79 | public static void main(String args[]) 80 | { 81 | myframe mf=new myframe(); 82 | 83 | } 84 | } 85 | 86 | -------------------------------------------------------------------------------- /awt/jav26_1.java: -------------------------------------------------------------------------------- 1 | import javax.swing.*; 2 | 3 | class myframe extends JFrame 4 | { 5 | myframe() 6 | { 7 | setSize(800,600); 8 | setVisible(true); 9 | setTitle("Swing frame"); 10 | setLayout(null); 11 | } 12 | void designform() 13 | { 14 | JButton b1=new JButton("Ok"); 15 | b1.setBounds(100,100,120,50); 16 | add(b1); 17 | 18 | } 19 | 20 | } 21 | 22 | class testframe 23 | { 24 | public static void main(String args[]) 25 | { 26 | myframe mf1=new myframe(); 27 | mf1.designform(); 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /awt/myframe.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/awt/myframe.class -------------------------------------------------------------------------------- /awt/secondframe.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | class calc extends Frame implements ActionListener 4 | { 5 | Label l3; 6 | TextField tf1,tf2; 7 | calc(String title) 8 | { 9 | l3=new Label(); 10 | setVisible(true); 11 | setSize(800,600); 12 | setTitle(title); 13 | setBackground(Color.YELLOW); 14 | setLayout(null); 15 | } 16 | public void actionPerformed(ActionEvent ae) 17 | { 18 | if(ae.getActionCommand()=="Add") 19 | { 20 | int a,b,c; 21 | a=Integer.parseInt(tf1.getText()); 22 | b=Integer.parseInt(tf2.getText()); 23 | c=a+b; 24 | l3.setText("Result is "+c); 25 | } 26 | else if(ae.getActionCommand()=="Subtract") 27 | { 28 | int a,b,c; 29 | a=Integer.parseInt(tf1.getText()); 30 | b=Integer.parseInt(tf2.getText()); 31 | c=a-b; 32 | l3.setText("Result is "+c); 33 | } 34 | else 35 | { 36 | int a,b,c; 37 | a=Integer.parseInt(tf1.getText()); 38 | b=Integer.parseInt(tf2.getText()); 39 | c=a*b; 40 | l3.setText("Result is "+c); 41 | } 42 | System.out.println(ae.getActionCommand()); 43 | } 44 | void designform() 45 | { 46 | Label l1=new Label("Enter the First Number"); 47 | Label l2=new Label("Enter the Second Number"); 48 | tf1=new TextField(20); 49 | tf2=new TextField(20); 50 | 51 | Button b1=new Button("Add"); 52 | Button b2=new Button("Subtract"); 53 | Button b3=new Button("Multiplication"); 54 | b1.addActionListener(this); 55 | b2.addActionListener(this); 56 | b3.addActionListener(this); 57 | 58 | l1.setBounds(200,100,150,20); 59 | l2.setBounds(200,125,150,20); 60 | 61 | tf1.setBounds(375,100,150,20); 62 | tf2.setBounds(375,125,150,20); 63 | 64 | b1.setBounds(200,150,150,20); 65 | b2.setBounds(350,150,150,20); 66 | b3.setBounds(475,150,150,20); 67 | 68 | l3.setBounds(200,250,150,20); 69 | 70 | 71 | add(l1); 72 | add(l2); 73 | add(tf1); 74 | add(tf2); 75 | add(b1); 76 | add(b2); 77 | add(l3); 78 | add(b3); 79 | } 80 | } 81 | 82 | 83 | class myframe 84 | { 85 | public static void main(String args[]) 86 | { 87 | calc c1=new calc("Calculator"); 88 | c1.designform(); 89 | 90 | } 91 | } -------------------------------------------------------------------------------- /awt/testframe.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/awt/testframe.class -------------------------------------------------------------------------------- /bank.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/bank.class -------------------------------------------------------------------------------- /c.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/c.class -------------------------------------------------------------------------------- /circle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/circle.class -------------------------------------------------------------------------------- /constrcutor_notes.txt: -------------------------------------------------------------------------------- 1 | Constructor 2 | 3 | 1) It is a special type of function 4 | 2) The name of the constructor same as name of the class. 5 | 3) Constrcutor never return any value 6 | 4) In constructor we can pass any number of arguments 7 | 5) Constructor always declared as public 8 | 6) Constrcut0r with out parameter is called default constructor 9 | 7) Constrcutor can be overloaded. 10 | 11 | -------------------------------------------------------------------------------- /custexp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/custexp.class -------------------------------------------------------------------------------- /custexp.java: -------------------------------------------------------------------------------- 1 | class InvalidAccountException extends Exception 2 | { 3 | public InvalidAccountException(String msg) 4 | { 5 | super(msg); 6 | } 7 | 8 | } 9 | 10 | class bank 11 | { 12 | public void checkaccount(int acc) throws InvalidAccountException 13 | { 14 | if (acc < 1000) 15 | throw new InvalidAccountException("Customer Invalid account no."); 16 | else 17 | System.out.println("Valid account no."); 18 | } 19 | 20 | } 21 | 22 | class custexp 23 | { 24 | public static void main(String args[]) throws InvalidAccountException 25 | { 26 | bank b1=new bank(); 27 | try 28 | { 29 | b1.checkaccount(200); 30 | }catch(InvalidAccountException ae) 31 | { 32 | System.out.println(ae.getMessage()); 33 | } 34 | 35 | System.out.println("Rest of the code.."); 36 | } 37 | } -------------------------------------------------------------------------------- /emp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/emp.class -------------------------------------------------------------------------------- /geo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/geo.class -------------------------------------------------------------------------------- /interface/bankimp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/bankimp.class -------------------------------------------------------------------------------- /interface/bus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/bus.class -------------------------------------------------------------------------------- /interface/car.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/car.class -------------------------------------------------------------------------------- /interface/intprg.java: -------------------------------------------------------------------------------- 1 | interface rbi 2 | { 3 | public int rateofinterest(); 4 | 5 | } 6 | 7 | 8 | class sbi implements rbi 9 | { 10 | public int rateofinterest() 11 | { 12 | return(6); 13 | } 14 | 15 | } 16 | 17 | class pnb implements rbi 18 | { 19 | public int rateofinterest() 20 | { 21 | return(7); 22 | } 23 | 24 | } 25 | class sbm extends sbi implements rbi 26 | { 27 | public int rateofinterest() 28 | { 29 | return(5); 30 | } 31 | 32 | } 33 | class bankimp 34 | { 35 | public static void main(String args[]) 36 | { 37 | sbi s=new sbi(); 38 | pnb pb=new pnb(); 39 | sbm sm=new sbm(); 40 | System.out.println("SBI rate of interest is "+s.rateofinterest()); 41 | System.out.println("PNB rate of interest is "+pb.rateofinterest()); 42 | System.out.println("SBM rate of interest is "+sm.rateofinterest()); 43 | 44 | 45 | } 46 | 47 | 48 | 49 | } -------------------------------------------------------------------------------- /interface/journey.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/journey.class -------------------------------------------------------------------------------- /interface/pnb.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/pnb.class -------------------------------------------------------------------------------- /interface/rbi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/rbi.class -------------------------------------------------------------------------------- /interface/sbi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/sbi.class -------------------------------------------------------------------------------- /interface/sbm.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/sbm.class -------------------------------------------------------------------------------- /interface/train.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/train.class -------------------------------------------------------------------------------- /interface/travelimp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/travelimp.class -------------------------------------------------------------------------------- /interface/travelimp.java: -------------------------------------------------------------------------------- 1 | interface vechile 2 | { 3 | public void move(); 4 | } 5 | 6 | class car implements vechile 7 | { 8 | public void move() 9 | { 10 | System.out.println("Journey started by car"); 11 | } 12 | 13 | } 14 | 15 | class bus implements vechile 16 | { 17 | public void move() 18 | { 19 | System.out.println("Journey started by bus"); 20 | } 21 | 22 | } 23 | 24 | class train implements vechile 25 | { 26 | public void move() 27 | { 28 | System.out.println("Journey started by train"); 29 | } 30 | 31 | 32 | } 33 | 34 | class journey 35 | { 36 | void startjourney(vechile v) 37 | { 38 | v.move(); 39 | } 40 | } 41 | 42 | class travelimp 43 | { 44 | public static void main(String args[]) 45 | { 46 | car c1=new car(); 47 | bus b1=new bus(); 48 | train t1=new train(); 49 | journey p1=new journey(); 50 | journey p2=new journey(); 51 | journey p3=new journey(); 52 | 53 | p1.startjourney(c1); 54 | p2.startjourney(b1); 55 | p3.startjourney(t1); 56 | 57 | } 58 | } 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /interface/vechile.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/interface/vechile.class -------------------------------------------------------------------------------- /jav105_1.java: -------------------------------------------------------------------------------- 1 | class test 2 | { 3 | public static void main(String args[]) 4 | { 5 | int a=1; 6 | int b=-1; 7 | int c=0; 8 | try 9 | { 10 | a=Integer.parseInt(args[0]); 11 | b=Integer.parseInt(args[1]); 12 | c=a+b; 13 | System.out.println("Addition is "+c); 14 | c=a/b; 15 | System.out.println("After divison execute the code"); 16 | 17 | } 18 | catch(ArithmeticException ae) 19 | { 20 | System.out.println("Denominator value is 0"); 21 | } 22 | catch(ArrayIndexOutOfBoundsException ae) 23 | { 24 | System.out.println("Value is missing"); 25 | } 26 | catch(NumberFormatException ae) 27 | { 28 | System.out.println("Value is mismatch"); 29 | } 30 | finally 31 | { 32 | System.out.println("Division is "+c); 33 | } 34 | System.out.println("Program rest code...."); 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /jav105_2.java: -------------------------------------------------------------------------------- 1 | class test 2 | { 3 | public static void main(String args[]) 4 | { 5 | int a=1; 6 | int b=-1; 7 | int c=0; 8 | try 9 | { 10 | a=Integer.parseInt(args[0]); 11 | b=Integer.parseInt(args[1]); 12 | c=a+b; 13 | System.out.println("Addition is "+c); 14 | c=a/b; 15 | System.out.println("After divison execute the code"); 16 | 17 | } 18 | catch(Exception ae) 19 | { 20 | System.out.println("Stopped due to some error...."+ae.getMessage()); 21 | ae.printStackTrace(); 22 | } 23 | 24 | finally 25 | { 26 | System.out.println("Division is "+c); 27 | } 28 | System.out.println("Program rest code...."); 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /jav115_1.java: -------------------------------------------------------------------------------- 1 | class voter 2 | { 3 | void getstatus(int age) 4 | { 5 | if (age < 18) 6 | throw new ArithmeticException("Invalid Age"); 7 | else 8 | System.out.println("Valid Age"); 9 | } 10 | } 11 | class test 12 | { 13 | public static void main(String args[]) 14 | { 15 | voter v1=new voter(); 16 | try 17 | { 18 | v1.getstatus(25); 19 | } 20 | catch(ArithmeticException ae) 21 | { 22 | System.out.println("Invalid Age"); 23 | } 24 | System.out.println("Program rest code"); 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /jav115_2.java: -------------------------------------------------------------------------------- 1 | class testexp 2 | { 3 | void run() throws IllegalAccessException 4 | { 5 | System.out.println("Inside run"); 6 | //throw new IllegalAccessException(); 7 | } 8 | } 9 | 10 | class test 11 | { 12 | public static void main(String args[]) throws IllegalAccessException 13 | { 14 | testexp t=new testexp(); 15 | t.run(); 16 | System.out.println("Inside main"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /jav115_3.java: -------------------------------------------------------------------------------- 1 | final class shape 2 | { 3 | void area() 4 | { 5 | System.out.println("Inside shape area"); 6 | } 7 | final void getdata() 8 | { 9 | System.out.println("Inside shape getdata"); 10 | 11 | } 12 | 13 | } 14 | 15 | class circle extends shape 16 | { 17 | void area() 18 | { 19 | System.out.println("Inside circle area"); 20 | } 21 | void getdata1() 22 | { 23 | System.out.println("Inside circle getdata"); 24 | 25 | } 26 | 27 | } 28 | 29 | class test 30 | { 31 | public static void main(String args[]) 32 | { 33 | circle c1=new circle(); 34 | c1.area(); 35 | c1.getdata(); 36 | 37 | 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /jav125_1.java: -------------------------------------------------------------------------------- 1 | class mythread extends Thread 2 | { 3 | int n; 4 | public mythread(int n) 5 | { 6 | this.n=n; 7 | } 8 | 9 | public void run() 10 | { 11 | int i; 12 | for(i=1;i<=10;i++) 13 | { 14 | try 15 | { 16 | System.out.println(n+" * "+i+" = "+i*n); 17 | Thread.sleep(1000); 18 | }catch(Exception e) 19 | { 20 | } 21 | } 22 | } 23 | } 24 | class test 25 | { 26 | public static void main(String args[]) 27 | { 28 | 29 | mythread t1=new mythread(10); 30 | t1.start(); 31 | mythread t2=new mythread(5); 32 | t2.start(); 33 | } 34 | } -------------------------------------------------------------------------------- /jav155_1.java: -------------------------------------------------------------------------------- 1 | class mythread_1 extends Thread 2 | { 3 | public void run() 4 | { 5 | int i; 6 | for(i=1;i<=10;i++) 7 | { 8 | try 9 | { 10 | System.out.println("Value of i is "+i); 11 | Thread.sleep(1000); 12 | } catch(Exception e) 13 | { 14 | } 15 | 16 | } 17 | 18 | } 19 | } 20 | 21 | class mythread_2 extends Thread 22 | { 23 | public void run() 24 | { 25 | int j; 26 | for(j=10;j>0;j--) 27 | { 28 | try 29 | { 30 | System.out.println("Value of j is "+j); 31 | Thread.sleep(1000); 32 | } catch(Exception e) 33 | { 34 | } 35 | } 36 | } 37 | 38 | 39 | } 40 | 41 | class testthread 42 | { 43 | public static void main(String args[]) 44 | { 45 | mythread_1 mt1=new mythread_1(); 46 | mythread_2 mt2=new mythread_2(); 47 | mt1.start(); 48 | mt2.start(); 49 | 50 | } 51 | } -------------------------------------------------------------------------------- /jav155_2.java: -------------------------------------------------------------------------------- 1 | class mythread implements Runnable 2 | { 3 | public void run() 4 | { 5 | int i; 6 | for(i=1;i<=20;i++) 7 | { 8 | if (i%2==0) 9 | System.out.println(i +" is even number "+Thread.currentThread()); 10 | } 11 | 12 | } 13 | 14 | } 15 | class mythread_1 implements Runnable 16 | { 17 | public void run() 18 | { 19 | int j; 20 | for(j=100;j<=120;j++) 21 | { 22 | if (j%2==0) 23 | System.out.println(j +" is even number "+Thread.currentThread()); 24 | } 25 | 26 | } 27 | 28 | } 29 | 30 | 31 | 32 | class testthread 33 | { 34 | public static void main(String args[]) 35 | { 36 | 37 | mythread mt1=new mythread(); //First Task 38 | mythread_1 mt2=new mythread_1();//Second Task 39 | Thread t1=new Thread(mt1,"First Thread"); 40 | Thread t2=new Thread(mt2,"Second Thread"); 41 | Thread t3=new Thread(mt1,"Third Thread"); 42 | t1.start(); 43 | t2.start(); 44 | t3.start(); 45 | } 46 | } -------------------------------------------------------------------------------- /jav155_3.java: -------------------------------------------------------------------------------- 1 | class testthread 2 | { 3 | public static void main(String args[]) 4 | { 5 | new Thread() 6 | { 7 | public void run() 8 | { 9 | int i; 10 | for(i=1;i<10;i++) 11 | { 12 | System.out.println("Value of i is---->"+i); 13 | } 14 | } 15 | }.start(); 16 | 17 | new Thread() 18 | { 19 | public void run() 20 | { 21 | int j; 22 | for(j=10;j>0;j--) 23 | { 24 | System.out.println("Value of j is---> "+j); 25 | } 26 | } 27 | }.start(); 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /jav15_1.java: -------------------------------------------------------------------------------- 1 | class A 2 | { 3 | int a; 4 | A() 5 | { 6 | System.out.println("Inside A's Default Constructor"); 7 | } 8 | A(int a) 9 | { 10 | this.a=a; 11 | System.out.println("Inside A's Parameter Constructor"); 12 | } 13 | 0 14 | 15 | void setA(int a) 16 | { 17 | this.a=a; 18 | } 19 | int getA() 20 | { 21 | return(a); 22 | } 23 | } 24 | 25 | class B extends A 26 | { 27 | 28 | int b; 29 | B() 30 | { 31 | System.out.println("Inside B's Default Constructor"); 32 | } 33 | B(int b) 34 | { 35 | super(b); 36 | this.b=b; 37 | System.out.println("Inside B's Parameter Constructor"); 38 | } 39 | 40 | 41 | 42 | void setB(int b) 43 | { 44 | this.b=b; 45 | } 46 | int getB() 47 | { 48 | return(b); 49 | 50 | } 51 | } 52 | 53 | class C extends B 54 | { 55 | 56 | int c; 57 | C() 58 | { 59 | System.out.println("Inside C's Default Constructor"); 60 | } 61 | 62 | C(int c) 63 | { 64 | super(c); 65 | this.c=c; 66 | System.out.println("Inside C's Parameter Constructor"); 67 | 68 | } 69 | 70 | void setC(int c) 71 | { 72 | this.c=c; 73 | } 74 | int getC() 75 | { 76 | return(c); 77 | } 78 | } 79 | 80 | class testinht 81 | { 82 | public static void main(String args[]) 83 | { 84 | C c1=new C(12); 85 | //c1.setA(12); 86 | //c1.setB(43); 87 | //c1.setC(89); 88 | System.out.println(c1.getA()+c1.getB()+c1.getC()); 89 | } 90 | } -------------------------------------------------------------------------------- /jav175_1.java: -------------------------------------------------------------------------------- 1 | interface square 2 | { 3 | public int calculate(int x); 4 | } 5 | 6 | class testthread 7 | { 8 | public static void main(String args[]) 9 | { 10 | square s1=(x)->x*x*x; 11 | System.out.println(s1.calculate(2)); 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /jav175_2.java: -------------------------------------------------------------------------------- 1 | class testthread 2 | { 3 | static int x=10; 4 | 5 | public static void main(String args[]) 6 | { 7 | /*new Thread(new Runnable() 8 | { 9 | public void run() 10 | { 11 | System.out.println("inside thread"); 12 | }} 13 | ).start();*/ 14 | 15 | 16 | new Thread( 17 | ()->{ 18 | for(int i=1;i<10;i++) 19 | System.out.println("Value of i is "+i); 20 | System.out.println("value of x is "+ ++x); 21 | } 22 | ).start(); 23 | 24 | new Thread( 25 | ()->{ 26 | for(int j=10;j>0;j--) 27 | System.out.println("Value of j is "+j); 28 | System.out.println("value of x is "+ ++x); 29 | 30 | } 31 | ).start(); 32 | 33 | 34 | 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /jav194_1.java: -------------------------------------------------------------------------------- 1 | class student 2 | { 3 | String name; 4 | int Rollno; 5 | int Mobileno; 6 | void setName(String n) 7 | { 8 | name=n; 9 | } 10 | void setRollno(int roll) 11 | { 12 | Rollno=roll; 13 | } 14 | void setMobileno(int mno) 15 | { 16 | Mobileno=mno; 17 | } 18 | 19 | String getName() 20 | { 21 | return(name); 22 | } 23 | int getRollno() 24 | { 25 | return(Rollno); 26 | } 27 | int getMobileno() 28 | { 29 | return(Mobileno); 30 | } 31 | } 32 | class test 33 | { 34 | public static void main(String[] args) 35 | { 36 | student s1=new student(); 37 | student s2=new student(); 38 | s1.setName("Ravi"); 39 | s1.setRollno(123); 40 | s1.setMobileno(987654); 41 | System.out.println("Name :"+s2.getName()); 42 | System.out.println("Roll No :"+s2.getRollno()); 43 | System.out.println("Mobile No :"+s2.getMobileno()); 44 | 45 | 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /jav214_1.java: -------------------------------------------------------------------------------- 1 | 2 | import java.util.Scanner; 3 | 4 | class student 5 | { 6 | String name; 7 | int Rollno; 8 | int Mobileno; 9 | void setName(String name) 10 | { 11 | this.name=name; 12 | } 13 | void setRollno(int Rollno) 14 | { 15 | this.Rollno=Rollno; 16 | } 17 | void setMobileno(int Mobileno) 18 | { 19 | this.Mobileno=Mobileno; 20 | } 21 | 22 | String getName() 23 | { 24 | return(name); 25 | } 26 | int getRollno() 27 | { 28 | return(Rollno); 29 | } 30 | int getMobileno() 31 | { 32 | return(Mobileno); 33 | } 34 | } 35 | class test 36 | { 37 | public static void main(String args[]) 38 | { 39 | Scanner sc=new Scanner(System.in); 40 | 41 | int n; 42 | System.out.println("Please enter the number of object you want to create"); 43 | n=sc.nextInt(); 44 | 45 | 46 | student s[]=new student[n]; 47 | 48 | for( int i=0;i list=new LinkedList<>(); 5 | int capacity=3; 6 | 7 | void produce() throws Exception 8 | { 9 | int value=0; 10 | while(true) 11 | { 12 | synchronized(this) 13 | { 14 | 15 | while(list.size()==capacity) 16 | wait(); 17 | value++; 18 | list.add(value); 19 | notify(); 20 | System.out.println("Producer produced-"+value); 21 | Thread.sleep(100); 22 | } 23 | } 24 | } 25 | 26 | void consume() throws Exception 27 | { 28 | while(true) 29 | { 30 | synchronized(this) 31 | { 32 | while(list.size()==0) 33 | wait(); 34 | int val=list.removeFirst(); 35 | notify(); 36 | System.out.println("Consumer consume-"+val); 37 | 38 | Thread.sleep(100); 39 | } 40 | } 41 | } 42 | } 43 | 44 | public class pcthread 45 | { 46 | public static void main(String args[]) 47 | { 48 | pc p1=new pc(); 49 | Thread t1=new Thread(new Runnable() 50 | { 51 | public void run() 52 | { 53 | try 54 | { 55 | p1.produce(); 56 | }catch(Exception e) 57 | { 58 | } 59 | } 60 | }); 61 | 62 | Thread t2=new Thread(new Runnable() 63 | { 64 | public void run() 65 | { 66 | try 67 | { 68 | p1.consume(); 69 | } 70 | catch(Exception e) 71 | { 72 | } 73 | } 74 | }); 75 | t1.start(); 76 | t2.start(); 77 | 78 | 79 | 80 | } 81 | } 82 | 83 | -------------------------------------------------------------------------------- /ppt/Exception in JAVA.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/ppt/Exception in JAVA.pptx -------------------------------------------------------------------------------- /ppt/multithreading.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/ppt/multithreading.pptx -------------------------------------------------------------------------------- /privatestudent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/privatestudent.class -------------------------------------------------------------------------------- /rectangle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/rectangle.class -------------------------------------------------------------------------------- /regularstudent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/regularstudent.class -------------------------------------------------------------------------------- /shape.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/shape.class -------------------------------------------------------------------------------- /square.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/square.class -------------------------------------------------------------------------------- /student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/student.class -------------------------------------------------------------------------------- /test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/test.class -------------------------------------------------------------------------------- /testadder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testadder.class -------------------------------------------------------------------------------- /testemp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testemp.class -------------------------------------------------------------------------------- /testexp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testexp.class -------------------------------------------------------------------------------- /testinh.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testinh.class -------------------------------------------------------------------------------- /testinht.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testinht.class -------------------------------------------------------------------------------- /testpack.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testpack.class -------------------------------------------------------------------------------- /testpack.java: -------------------------------------------------------------------------------- 1 | import mypack.math; 2 | 3 | class testpack 4 | { 5 | public static void main(String args[]) 6 | { 7 | math m1=new math(); 8 | System.out.println(m1.square(2)); 9 | 10 | } 11 | } -------------------------------------------------------------------------------- /testprg.java: -------------------------------------------------------------------------------- 1 | class mainclass 2 | { 3 | public static void main(String args[]) 4 | { 5 | System.out.println("Welcome to java world"); 6 | } 7 | } -------------------------------------------------------------------------------- /testshape.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testshape.class -------------------------------------------------------------------------------- /teststudent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/teststudent.class -------------------------------------------------------------------------------- /testthread$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testthread$1.class -------------------------------------------------------------------------------- /testthread$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testthread$2.class -------------------------------------------------------------------------------- /testthread.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/testthread.class -------------------------------------------------------------------------------- /triangle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/triangle.class -------------------------------------------------------------------------------- /voter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smonga612/Javacode/0e61d8ba0f93b5edd72d840123799507e1d6780f/voter.class --------------------------------------------------------------------------------