ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Code Snippets >> Programming Code >> Java Code >> J2SE Code
 
 


 

 
 J2SE Code interview questions  J2SE Code Interview Questions (32)
 J2EE Code interview questions  J2EE Code Interview Questions (20)
 J2ME Code interview questions  J2ME Code Interview Questions (5)
Question
Program to print map of India in java.
 Question Submitted By :: Abhishek Agarwal
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Program to print map of India in java.
Answer
# 1
class map
{
public static void main(String aa[]) throws Exception
{
int a,b=0;
String s1="ABHISHEK AGARWALTFy!QJu ROo TNn(ROo)SLq SLq
ULo+UHs UJq
TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCSt
HAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-
WHq!WFs XDt!";
int n=s1.length();
for(int i=16;i<n;i++)
{
a=(int)s1.charAt(i);
b++;
for(int c=a;c>64;c--)
{
char ch=(char)(33^b&1);
System.out.print(ch);
}}}}
 
Is This Answer Correct ?    6 Yes 16 No
Abhishek Agarwal
 

 
 
 
Other J2SE Code Interview Questions
 
  Question Asked @ Answers
 
Write a program to convert a decimal number to binary form? Oracle 1
is public static void main() work in java?is "String arg[]" needed as argument? Tech-Mahindra 4
Why the program getting error if we don't use String args[] in main(), even in the case of not getting any arguments from command line?   1
Why we r using String args[] in main() even though v r not passing any arguments in command line?   2
write a program that will ask the user to enter a number n and display the product of all numbers from 1 to n.   1
how to print a message to console without using main() function?(do not use even static blocks also.) Google 9
how to create a (*)pyramid using java codes??? Infosys 5
how to store and retrive a set of values without using an array Maximus 8
How to create and run runnable jar file of a Java Project. HCL 4
How Can I Trace A Java Program . Please Give Me Step by Step Process IBM 1
How can we get the details for printing the employee details at run time using JDBC connectivity? can u provide the coding for that? Its urgent?   2
inner join,outerjoin,trigger,stored procedure explain with code snippets? IBM 1
 
For more J2SE Code Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com