Share on Google+Share on Google+

2 Answer(s)      8 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 designing a vehicle class hierachy in java.write a program to demonstrate polymorphism
java concepts - Java Beginners
java concepts   i need theory for lisp-like list in java to perform basic operations such as car, cdr ,cons
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 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
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  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
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
Polymorphism - Java Beginners
learn the functionalities and how they work! If you want to read the theory
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
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........  
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
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
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
jsp code - JSP-Servlet
textbox no of theory subjects textbox duration of labs inperiods textbox
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
Description of EJB 3
; This is a comprehensive training course consisting of both theory and hands-on labs


Advertisement null