You are on page 1of 2

1

Walchand Institute of Technology Department of Information Technology

Notice for TE-BE Class VALUE ADDED PROGRAM

Q1. Give its output

class Demo { public static void main (String[] args) { int a=3>>2; int b=3<<2; int c=8>>>2; System.out.println(a+"\t"+b+"\t"+c); } }

Student Coordinators: Yasar Shaikh, Yash Kapadi, Rajshekar Budharam

Send as: Answer<space>Student Name<space>class Send to: 7709281994

Q2. Give its output class Demo { static int a; static void set(int a) { this.a=a; }

static int getA() { return a; } public static void main (String[] args) { set(10); System.out.println(getA()+""); } }

Prof. Anil s Naik (Aptitude incharge) Send as: Answer<space>Student Name<space>class Send to: 7709281994

Prof. Lobo L.M.R.J Head, IT Dept

Student Coordinators: Yasar Shaikh, Yash Kapadi, Rajshekar Budharam

You might also like