Share on Google+Share on Google+

2 Answer(s)      7 years ago
Posted in : Java Beginners


View Answers

August 29, 2009 at 4:12 PM

Hi Friend,

Try the following code:

import java.util.*;

class AlphabeticalOrder {
public String alphaOrder(String str){
char[] charArray = str.toCharArray();
String aString = new String(charArray);
return aString ;
public static void main(String[] args) throws IOException {

String inputString = "INDIA";
AlphabeticalOrder obj = new AlphabeticalOrder();
String alphaString = obj.alphaOrder(inputString);
System.out.println("String in alphabetical order : " + alphaString);

August 29, 2009 at 5:29 PM


1)Polymorphism- When an entity behaves differently depending upon the context its being used,It is defined as Polymorphism.In other words, it is the capability of an action or method to do different things based on the object that it is acting upon. It allows you to define one interface and have multiple implementation.

2)It is a user defined method which is having immediate access to a types global and constant and should be declare outside the class.

3)Composite Data type-A composite data type is made up of collection of values which associate an identifier with the collection of values.It shows relationship between the variables and store reference collection of variables as a group.

5)Difference between Implicit and Explicit type casting:
a)If the results of casting fits into the target variable,implicit typecasting is used otherwise explicit typecasting is used.

b)Any positive integer between the range of 0 and FFFF in hexadecimal can be cast implicitly otherwise explicitly.


Related Tutorials/Questions & Answers:
jdbc theory qn
jdbc theory qn  how to compile jdbc and what software is required?   Please visit the following link: JDBC Tutorial
, running. Basic theory behind the steps also are given. We are using Tomcat-5
Cross Join Tables in a Specific Database
tables as a Cartesian product of set theory in mathematics. Each row will get... as Cartesian product format of set theory in mathematics. All rows are shown
VoIP Books
VoIP Books          Practical VoIP book Using VOCAL While many books describe the theory behind Voice over IP, only Practical VoIP Using VOCAL describes how
java concepts - Java Beginners
java concepts   i need theory for lisp-like list in java to perform basic operations such as car, cdr ,cons
java concepts - Java Beginners
java concepts   i need theory for designing a vehicle class hierachy in java.write a program to demonstrate polymorphism
how to draw network with nodes - Java Beginners
how to draw network with nodes  how can i draw a network graph (game theory) with 3 nodes and each node display some information
java  I know basic knowledge about java i.e.. theory knowledge but i dont know how to write a basic code for the basic things too. how to develop programming skills in java
Java Coding
Java Coding  Hello, Can u please tel me how to improve my coding techniques.I am feeling difficulty with coding but I am perfect with my theory part
java concepts - Java Beginners
java concepts   i need theory for designing a java interface for adt stack .develop two different classes that implement the interface one using array and another using linkedlist
students have marks in theory oracle students have marks in lab,java ee students have marks in theory project .so create constuctors to take all necessary details
xml question
xml question  > mplement award list of MCA 1 st year > as a XML document. The table must > have semester No, student√Ę‚?¨‚?Ęs Enrollment > No, TEE marks of all the theory > subjects, practical subjects and >
Greatest Marketing Theories that Rocked the World
that differentiated the marketing theory from product life cycle thinking. He... thinking among the greatest marketing theories that rocked the world. Theory of the Second Best This theory mainly concerns the welfare economic problem
Lambda Calculus
calculus and development of computing theory Notion of variable binding... on this logic the basis of computing theory will be formulated in the Church-Turing theory where it would be claimed that the untyped variant of Lambda calculus can
program  Write a JSP Program, which displays a web page containing two web links one for your profiling and other for the schedule of theory of practical classes of your Batch. When one click on link for getting your profile
servelets - Java Beginners
servelets  I want to develop a small web application using netbeans.It contains a user login page,after sign into the page it will shows a new window please send me links(only links) contains theory information........  
Programming in JDBC and JSP - JSP-Servlet
Programming in JDBC and JSP  Write a program using JDBC and JSP to display the names and addresses of all those MCA students at your study centre who have completed/submitted their theory assignments of all the courses of IV
Polymorphism - Java Beginners
learn the functionalities and how they work! If you want to read the theory
jsp code - JSP-Servlet
textbox no of theory subjects textbox duration of labs inperiods textbox
Conversion - Development process
Conversion  Why is there a need to convert from Java to .NET? What is the theory of conversion from java to .NET? How it is done?   Hi friend, Two paths are available for migrating Java applications to .Net
seeking info - JSP-Servlet
seeking info  Looking for the information on Java, JSP and Servlet Programming.  Hello NaveenDon't worry as every one faces the same kind of problem in starting. So Be confident and first read the theory part as it'll
Most Influential Management Gurus of Twentieth Century
of corporate strategy and his ‘five forces framework’ theory is taught... and strategies. Peter Drucker Any history of management theory and practice is simply
servelets - Java Beginners
servelets  I want to develop a small web application using netbeans.It contains a user login page,after sign into the page it will shows a new panel. Plese send me links which contains theory and practical
Java Spring Hibernate Struts Training What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? file location SASLError using PLAIN: not-authorized how to convert war file into .exe file using java code


Advertisement null