What is the difference between multidimensional and dimensional scaling?
The difference between multidimensional and dimensional scaling is in terms of relationship between physical characteristic and dimension. In the case of multidimensional scaling, each dimension can be connected to 2 or more physical characteristics, unlike dimensional scaling..
How do you make a program for a multiplipication table?
here-
class tableof5
{
public static void main()
{int i;
for(i=1;i<=10;i=i+1)
{System.out.println("5"+"*"+i+"="+i*5);
}
}
}
Difference between BufferedWriter and FileWriter in java?
A newLine() method is provided, which uses the platform's own notion of line separator as defined by the system property line.separator. Not all platforms use the newline character ('\n') to terminate lines. Calling this method to terminate each output line is therefore preferred to writing a newline character directly, FileWriter doesn't have this feature. ALso BufferedWriter are fast as they write to buffer first before writing to file
Public static void main String arg means?
The Main method is the method in which execution to any java program begins.
A main method declaration looks as follows:
public static void main(String args[]){
}
The method is public because it be accessible to the JVM to begin execution of the program.
It is Static because it be available for execution without an object instance. you may know that you need an object instance to invoke any method. So you cannot begin execution of a class without its object if the main method was not static.
It returns only a void because, once the main method execution is over, the program terminates. So there can be no data that can be returned by the Main method
The last parameter is String args[]. This is used to signify that the user may opt to enter parameters to the java program at command line. We can use both String[] args or String args[]. The Java compiler would accept both forms.
--------------------------------------------------------------------------------------------------------------
User : ALPHAZERO
You can also use like this
class alpha{
public static void main(String...args){
S.o.p("HOW");
}
}
[S.o.p = System.out.println]
Still i don't know explain why but i know its work you can also try like this if you already know how its work please post here or mail me zalpha@rocketmail.com
--------------------------------------------------------------------------------------------------------------
Is there any tool to generate sequence diagram for a complex Java application?
http://sourceforge.net/projects/javacalltracer
It is a very lightweight tool and you can control what you want to generate and see in the sequence diagram.
Together 2008 SP1 Although generating sequence diagrams from execution is cool, it is dependent upon the scenario under execution. Together offers the classic approach of reverse engineering the diagrams from Java source code. Together can generate a UML 2.0 sequence diagram (with frame blocks: e.g. alt, try, opt etc.) for any method specified in a class diagram, so you can get method level behavioral descriptions of your code. It does generate a sequence diagram log which you should check because this version of their code parser does have occasional trouble with expressions used in arguments which can prevent the sequence diagram from including all the detail. You can also tailor the generation detail to include depth of calls and whether you want to include invocations to java libraries in the diagram. MaintainJ generates sequence diagramsYou may want to check MaintainJ at http://maintainj.com .Here is a brief description from the MaintainJ homepage:
MaintainJ, an Eclipse plug-in, generates runtime sequence and class diagrams for a given use case, helping the users to quickly understand a complex Java or J2EE application.
MaintainJ logs runtime method execution sequence to a file and uses that trace file to render sequence and class diagrams. MaintainJ Instrumentation Wizard instruments a Java/J2EE application and MaintainJ UML Editor renders sequence and class diagram from the trace file.
The following features make MaintainJ a unique and useful tool for Java developers.
a) Generated Diagrams - Runtime sequence and class diagrams for a given use case are generated on demand in a few minutes; no need to prepare and update UML diagrams.
b) Source Untouched - The application code is not changed in anyway; application is rebuilt using AspectJ compiler to capture the method execution sequence at runtime.
c) Collapsible Calls - Method calls in sequence diagram are collapsible. One can easily explore a complex sequence diagram by collapsing and expanding calls as necessary.
d) Focused Diagrams - Only application classes in specified packages are shown in diagrams. All repeat calls occurring in a loop and recursive calls are removed from sequence diagrams.
e) Runtime Diagrams - All classes shown in the diagrams are concrete runtime classes.
f) Eclipse Integration - Double clicking a call or class opens matching method or class in Eclipse.
g) Outline Views - Outline views in both diagrams make navigating a complex diagram easier.
h) Print or Export - Diagrams can be printed or exported as JPEG images.
jTracert can generate sequence diagrams from existing application runtimehttp://jtracert.googlecode.comjTracert will allow you to generate sequence diagrams directly from your application runtime!
jTracert is implemented as a small javaagent, consisting from only one jar with no dependencies. In order to profile your application with jTracert, just add the following option to VM options: -javaagent:jTracert.jar
So your full command line will look like below: java -javaagent:jTracert.jar -jar yourApplicationJar.jar
Please note, that you're not limited to J2SE applications. Add this parameter to your J2EE App server options, and profile your J2EE application. It's also possible to profile applets, and almost all other types of java applications. This is a benefit of implementing jTracert in pure Java.
Note: as of 30 Mar 2010 jTracert has been replaced by jSonde (which is also free). See http://www.jsonde.com
Reverse Java (http://www.reversejava.com)Reverse Java is a dynamic reverse engineering application which generates UML Sequence diagram and view of Participating Class diagram for any Java Application at runtime.Reverse java works with both any standalone Java application or a Web based J2EE application.
What does instance field mean in Java?
Fields defined without the "static" keyword.Their value is unique to each instance (object) of a class.
AnswerInstance variable is a variable declared within the class for which every object of the class has its own value.What the advantages of using the Java Collection Framework?
The main advantage is that you don't have to implement those collections yourself. Java provides very efficient implementations for dozens of collections.
Its a web designing program1
It is HTML WYSIWYG editor control which is help full in adding & editing HTML content on any page
How do you solve the problem 'GlassFish Server 3.1.2 Start Failed' in NetBeans IDE 7.2.1 in java?
My port was 8080. So I edited the domain.xml file inside glassfish\domains\domain1\ config\domain.xml file.
I replaced the port 8080 with 8888 and replaced the file. After that I added the glassfish server to netbeans, and now it is working.
-1
What is a classification of metadata and explain the features of each type of metadata?
Meta data, overall, can hold a huge amount of information about a website. However, the three most important types of meta data are:
Meta keywords (the keywords that describe what a page is about)
Meta Title (the page's title)
Meta Description (a full, but short description of a webpage.)
Write an java program that reads a collection of words and prints the words in alphabetical order?
class sortstr
{
public static void main(String args[])
{
int len=args.length;char ch1;
if(len==0)
{
System.out.println("No arguments are given ! ");
return;
}
char[] str=args[0].toCharArray();
char temp;
for(int i=0;i<len;i++)
{
for(int j=0;j<len-1;j++)
{
ch1=str.charAt(j);
char ch2=str.charAt(j+1);
if(ch1> ch2)
{
temp=str[j];
str[j]=str[j+1];
str[j+1]=temp;
}
}
}
for(int i=0;i<len;i++)
{
System.out.print(str[i]);
}
}
}
An enum type is a type whose fields consist of a fixed set of constants
no it is not but there are more langs for other specific purposes
A Java block is a section of code enclosed within curly braces {} within a method. For example, here is a segment of code with several blocks:
public static void main(String[] args) {
for(int i = 0; i < 5; i++) {
System.out.println("Inside a for loop block for the " + i + "th time");
}
if(System.currentTimeInMillis() > 1000) {
// Inside a if block
}
}
Some other blocks are: switch blocks, case blocks, for-each blocks, while blocks, and anomonous methods and classes (and all the methods and blocks inside.)
I hope that answers your question.
install HBC and linux to your wii use wired networks to download java
Detected as a java exploit by A-Squared Free. Some kind of browser redirector? You need to run these 5 essential steps to remove all the spyware on your computer.
1. Run Deckard's System Scanner (DSS)
2. Run Malwarebytes Anti-Malware
3. Run the anti spyware removal programs spybot
4 Run Superantispyware
5. Run a complete scan with free curing utility Dr.Web CureIt!
Install threat fire which will enhance your antivirus protection
No. The term platform independence in Java does not mean that any other programming language cannot be run in multiple OS platforms. Actually platform independence means that the java code can be run in multiple platforms with little or no customization. The code that can execute in a Windows platform can run as it is in a Linux box, whereas other programming languages need to be customized based on the platform they will be implemented in.
Write a java application to accept a string display in following formet NOT to TON?
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class format
{
public static void main(String args[])throws IOException
{
BufferedReader y=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter word");
String w=y.readLine();
for (int a=w.length()-1;a>=0;a--)
{
char c=w.charAt(a);
System.out.print(c);
}
}
}
In java what is the purpose of a layout manager?
Java LayoutManagers are used to save you the effort of manually putting Components where you want them on a Container. Even more useful is the fact that a LayoutManager object will handle repositioning your objects whenever the Container is resized (which is a colossal waste of time when you do it yourself).