New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
Academic Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
PROSENJIT MANN...
(484)
Mr. Anindya
(480)
Pawan Bahuguna
(312)
Last 7 Days
Shobha Manasa
(1663)
Aira
(1481)
N K Ravishanka...
(1241)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
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.
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 chakkra
Member Level:
Silver
Rating:
Points
: 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
Master Sys Technologies - placement Paper (JAVA)
BLUESTAR interview questions
Model Question Papers of Various Companies
SAIL PAPER ON 10th JANUARY AT AHMEDABAD
HEXAWARE TECHNOLOGIES
Placement paper BSNL
Advertise Here
Watch TV Channels
Watch Asianet online
Kairali TV in Internet
Surya TV online
Amritha TV Channel
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.