New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Resources » Articles/Knowledge Sharing » Placement Papers »

L-CUBE INNOVATIVE SOLUTIONS WRITTEN TEST JAVA QUESTIONS


Posted Date: 20 Jun 2009    Resource Type: Articles/Knowledge Sharing    Category: Placement Papers
Author: Janani chakkraMember Level: Silver    
Rating: 3 out of 53 out of 53 out of 5Points: 2



PGM1:
class test
{
static String f1(int i)
{
return "I";
}
static String f1(float i)
{
return "F";
}
static String f1(long i)
{
return "L";
}
static String f1(double i)
{
return "D";
}
public static void main(String a[])
{
System.out.print(f1(Math.abs(1.0)));
}
}
OUTPUT:D

PGM2:
class test1
{
public static void main(String args[])
{
for(int i= 1;i<5;i++)
{
switch(i)
{
case 1:System.out.print('A');
case 2:System.out.print('B');
case 3:System.out.print('c');
}
}
}
}
OUTPUT:AbcBcc



PGM3:
class test2
{
public static void main(String a[])
{
int x=0,y=0;
for(int z=0;z<5;z++)
{
if(x>2 && y>2)
x++;
}
System.out.println(x +" "+y);
}
}

OUTPUT: 0 0

PGM4:
class test3
{
public static void main(String a[])
{
int x=8;

System.out.println("bit:"+(x>>1));
}
}

OUTPUT: bit:4



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Written test in l- cube  .  L-cube innovative solutions  .  Java programs  .  Basic java programs with output  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Master Sys Technologies - placement Paper (JAVA)
Previous Resource: Software Company C programming Questions
Return to Discussion Resource Index
Post New Resource
Category: Placement Papers


Post resources and earn money!
 
More Resources



Advertise Here


Watch TV Channels




Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.