What is the difference between java and .Net?
Answers were Sorted based on User's Feedback
Answer / sivasubramanian.k
Java is both a programming language as well as a well
developed technology.It was found by Sun MicroSystems..
.Net is a framework found by Microsoft which supports
multiple languages like VC#,VC++,VisualBasic,Web related
applications such as ASP etc..In java source code is
converted to ByteCode by JVM while in .NET code id
converted to MSIL(Microsoft Intermediate Language Code)by
the CLR supported by .NET..
| Is This Answer Correct ? | 398 Yes | 36 No |
Answer / naresh
Java is a single language shared by multiple platforms
nut .net is a framework for different languages but shared
by single platform
| Is This Answer Correct ? | 166 Yes | 27 No |
Answer / sujana
Java is platform independent, only thing we need is jvm on
the platform which comes in all operating systems by
default,.net is also platform independent as it needs
only .net framework,but since m$ owns the copyright to
the .net framework api's,it becomes platform dependent.
Java uses a common language while in .net we can use many
languages and it generates a platform specific code
| Is This Answer Correct ? | 152 Yes | 66 No |
Answer / b.chandana
Simply we can say that .net is framework where we can use
diff types of languages,where as java is a programming
language
| Is This Answer Correct ? | 104 Yes | 20 No |
Answer / hiren
java has support to open source platform whilw .net has no
direct support for open source platform
| Is This Answer Correct ? | 69 Yes | 13 No |
Answer / krishna
java has support to open source platform while .net has no
direct support for open source platform
| Is This Answer Correct ? | 58 Yes | 13 No |
Answer / neeraja lakshmi
In .NET due to disconnected data access through ADO.NET,
has a high level performance against JDBC which requires
multiple roundtrips to the data base
And Now a days MS people are saying that .NET can support
more than 40 languages.Its Majaor advantage is the Visual
studio.Net which is highly efficient than anyother IDE..
| Is This Answer Correct ? | 74 Yes | 30 No |
Answer / tarakesh
Dot Net Framework a rich set of Classes(or API) and
interfaces where as java has poor framework. One of the
best feature of Ado.Net is its disconnected architecture
where there is no need to have connection establishment
with the DB always.
| Is This Answer Correct ? | 49 Yes | 18 No |
Answer / ritu gupta
java is a single language on multiple plateform but .net
can have diff languages on a sngle platform.
| Is This Answer Correct ? | 28 Yes | 8 No |
Answer / dipak kanani
java is not provied mutilanguage but .net provied multi-
language
| Is This Answer Correct ? | 25 Yes | 5 No |
How do you remove duplicates in java?
make a method which any number and any type of argument and print sum of that arguments.....
Explain the difference between runnable and callable interface in java?
Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can you improve this?
What is the default access specifier for variables and methods of a class?
What is scope of a variable?
What is xslt in java?
What are the differences between string, stringbuffer and stringbuilder?
What is the byte range?
How do you use wildcards?
What is the difference between Java1.4 and Java1.5
Question 5 [15] Consider the following classes, illustrating the Strategy design pattern: import java.awt.*; abstract class Text { protected TextApplet tA; protected Text(TextApplet tApplet) { tA = tApplet; } abstract public void draw(Graphics g); } class PlainText extends Text { protected PlainText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Sans-serif", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } class CodeText extends Text { protected CodeText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Monospaced", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } public class TextApplet extends java.applet.Applet { protected Text text; protected String textVal; protected Color color; public String getText() { return textVal; } public Color getColor() { return color; } public void init() { textVal = getParameter("text"); String textStyle = getParameter("style"); String textColor = getParameter("color"); if (textStyle == "code") text = new CodeText(this); else text = new PlainText(this); if (textColor == "red") color = Color.RED; else if (textColor == "blue") color = Color.BLUE; else color = Color.BLACK; } public void paint(Graphics g) { text.draw(g); 10 } } The Text class is more complicated than it should be (there is too much coupling between the Text and TextApplet classes). By getting rid of the reference to a TextApplet object in the Text class and setting the colour in the paint() method, one could turn the Text class into an interface and simplify the strategy classes considerably. 5.1 Rewrite the Text and PlainText classes to do what is described above. (6) 5.2 Explain the consequent changes that are necessary to the TextApplet class. (4) 5.3 Write an additional strategy class called FancyText (to go with your simplified strategy classes) to allow fancy text to be displayed for the value "fancy" provided for the style parameter. It should use the font Font ("Serif", Font.ITALIC, 12). (3) 5.4 Explain what changes are necessary to the TextApplet class for this. (2)