illusion
Nov 13 2004, 03:42 PM
| | well this is a new thing for me I read from somewhere.. it is that the premiting data types in both the languages differ in nature. java's builtin Datatypes are not inherited from the base class Object where as C sharps integer and the like data types have object as there baseclass but not surprisingly C sharps premitive datatypes get a located in the Stack instead of heep means there are still the value types. what are u'r coments Does the C sharp Compiler totaly diferent features to work with these data types? |
Reply
webshark
Jun 24 2005, 09:18 AM
The link between objects and primitive types is "boxing", a procedure that encapsulates a value type in an object when it is used where a object is required (such as passing a primitive type by reference). The whole boxing procedure is handled by the runtime and without needing the programmer to care about it. You can find out much more about it by looking at: http://msdn.microsoft.com/library/default....nvaluetypes.asp
Reply
Similar Topics
Keywords : diff, b, w, c, sharp, java, language
- Php To Java
(5)
Java Memory Leak?
(0) I have been using the picking tool with setShapeCylinderSegment (this returns infinit results but
is capped). It works just fine for me (in terms of what it does) and it wasn't until just
recently I noticed that it has been causing my program to spike the memory. I have looked through
Google to see the problem and apparently it is caused a memory leak. I have tried to solve it by
simply setting all the variables to null after they are used but this doesn't help. Is there
something I can do to or a free software I can use to find the exact variable that is causin....
Java And Sql: Data Mismatch
(6) Alright, I'm having some really funky issue with this. I know it's a mismatch (obviously)
and I want to know if the Astahost community members can help me solve this issue. It's been
annoying me a lot of late. CODE try{ libSQL myAddNewData = new libSQL();
String strRownum
=(String.valueOf(jComboBoxLName.getSelectedItem())); if
(intChoice == 1){ myAddNewData.AddNewData("INSERT INTO CUSDATA
(FIRSTNAME, LASTNAME, PHONE, SIN) VALUES ('"+ strUserData[in....
Simple Java Question
One Variable; Multiple Classes (3) I’m probably the only person that is able to do so much with Java3D and yet still can't
even get some of the Java basics down. Anyway is it (and if so how is it) possible to make a
variable editable and readable in multiple class files? It seems like this should be an easy
question to answer, but here is a little code to help you understand what I am talking about. CODE
public class test extends Applet{ public int Col = 0; [some long code basically all it
does is call for a collision behavior] [(TestB multiple times every 100 millisecon....
Who Is No. 1 Actor In India (all Language Including Bollywood)?
(1) Who is No. 1 Actor in India (All language including Bollywood)? My choice Amithab Bachan....All
time hero.......
Java Java.security.accesscontrolexception
(6) I have looked all over the web for a solution and none of them seem to work. Anyway, I am trying to
load a 3d object onto a scene with a java applet and I get the following error. CODE
java.security.AccessControlException: access denied (java.io.FilePermission object.obj
read) I think that it has to do with my java.policy permissions, but I cant find anything
that will fix it. Has anyone ever seen this error and/or know a solution to it? I am looking for a
solution that will work on other people's computers without them downloading anything extra ....
Increase Your Knowledge Of Html Language
(11) For Creating good website you have to be master in HTML Language. It is a scryptic Language. If you
want to Learn this language than visit the link http://zwqa.page.tl/Increase-you-HTML-Knowledge.htm
....
Setting Up Java Correctly
(8) First thing, I know the pictures say update 3, I'll update them to 4 soon... Since there's
been alot of people saying this bot doesn't
work!1!1!!elevenone1!11exclamination! I'll tell you how to set up your
Java, correctly Before I say anything, if you get this problem Exception in thread "main"
java.lang.NoClassDefFoundError: mudclient press any key to continue. . . This means you have set up
your Java incorrectly, follow the tutorial properly Also if you are not an Administrator on your
computer you can't change the Enviro....
Java Applet Loading Error
(5) I'v just started to study JAVA. And I borrowed a book, Great Ideas in Computer Science with
JAVA. But I can't loading any applet written on the text. I use firefox to load applet. Does
anyone know why the applet can't be loaded? sample code is below. /laugh.gif"
style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /> CODE import
java.awt.*; public class HelloWorld extends java.applet.Applet { TextField m1,m2; public void
init() { m1 = new TextField(60); m2 = new TextField(60);
m1.setText("H e l ....
Graphcal User Interfaces In Java
How do you make them? (4) Ok, right now I am currently using eclipse, however I can change to whatever if there is something
else that would be better for this. But I have made a number of java applications, but they all
simply use the command line for doing their user input and output. However, I have been interested
in learning how to program graphical user interfaces in java, and was wondering if somebody could
point me in the right direction, with some easy to understand and follow tutorials. Also, once I
have done that, what about making a java program that can be easily executed? (I know t....
Counting Down To A Time
php or java? (7) Hey i have been searching google and websites to find the answer to my question but i just get
blasted with a bunch of code that isn't explained... So i would like to know how, in either
php or java how i would get something to count down to a certain time, but not specifically a time,
more like count down in days, hours, minutes and seconds and not require a refresh... like it count
downs on the page every second... And that i can specify the days, hours etc in the start of the
function such as function countdown($days, $hours, $minutes, $seco....
How To Change Language At Login Screen
I've been locked out! (7) I got a computer from the store that had been preinstalled with Windows XP Pro, it would
automatically log on. The default language was Arabic, and i changed it to English. Everything was
working fine until I added a password to my account. After restarting, I can't log in to the
computer because my password was in english and the default language at login is Arabic. So I did
also make another account with no password so that I could bypass the password on this account if
something was to go wrong, but I can't even log on to that one. When I hit Ctrl+Alt+Del+Del,....
How Do I Test A Java Aplication
(11) Well..can someone introduce me?(picture introduce is well)....
How To Create Exe File In Java?
(12) Dear friends I came to know that one can build exe files from java application. How this is
possible? According to me there is no such method in java to cerate exe files. However Microsoft
used to provide a free system development kit (SDK), for Java, which includes the jexegen tool. But
one need install Microsoft Java Virtual Machine to run such application. Some people suggest
InstallAnyWhere.....
Looking For A Java IDE
(25) Hello Java people! I'm starting to work more on java this spring (university stuff) and I
think I need a proper IDE. So far my java programming has been in little scale so editor and command
line compiling has worked just fine. So I'm looking for a good, free IDE. It does not need to
have fancy features, just what you'd expect from an IDE. My previous experience on IDEs limits
pretty much to MS Visual Studio. I've also tried out Borland's builders but I've hated
them, granted they all were quite old versions. So what IDEs you use and wh....
Video Streaming In Web Browser Through Java Or Jsp
video streaming in web browser (1) Can anyone give idea about video streaming in web browser through java or jsp I need to play video
presentation in my web browser to show all members of the company.For I want to put my video file in
web server and anyone can access that video just playing on their browser our web browser is
firefox. We don’t want to use any active X properties or any default media player in web browser
. Our Platform is linux fedora core4, web server is tomcat 5 . We read the JMF java media Framework
API, but I couldn’t understand how to use this in our server for linux. There is ....
Java By Example
(8) Java was the first programming language that I learned on my own...no teachers, no friends, just me
and the internet. One of the best aspects of Java is the heavy documentation provided by Sun and
every other Java developer out there. Here is a link to a site that lists loads of examples of Java
code. http://javaalmanac.com/egs/ ? They have examples of setting up a JDBC/ODBC connection for
database use, creating ZIP files for archival purposes, and simply showing you how to use vectors.
This site is great for learning the basics and building applications on top of i....
Download Java Ebooks
Java Books (13) Download java books from below sites http://www.gayanb.com/ The eBook links you've posted
contain a bunch of illegal eBooks. Be aware that this is in direct violation of our TOS . Links
removed. ....
What Language Is Linux Written In ?
(15) I''ve been wondering lately, what language is Linux written in? I'm interested in
this, because my friend and I are considering writing our own distro. I know, it sounds like a bit
of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us
could do something similar. /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif'
/> ....
Need Help: Find Lowest Character Using Java
(7) Heya guys, Been a looooong time eh, yeah well i was kinda buzy with college stuff and all those
assignments just keep pouring in. I have java this semester and i have "NO" idea how to go abt it, 1
reason being that my proff. is going real fast in the explaination part and i doubt she knows
anything in java /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> Newayz
, i was asked to do a small program in java , heres how it goes : I need to enter a word prefixed
by the number of letters in it, and the output should show me the smallest character ....
A Complete Java Tutorial
(4) The Java Programming Manual Chapter 0: Introduction. What Java is and what it is not Java is
an object oriented programming language that has evolved from and to substitute the C and C++
programming languages. But why? The main reason for Java to have evolved is "platform
independence" we shall come to this part later. When a programming language is designed, certain
trade offs have to be made. 1) Ease of use versus Power 2) Efficiency versus Safety 3) Rigidity
versus Extensibility This also gives a more or less accurate comparison of C++ versus Java Java ha....
Does Anyone Code Using Turing
A student programming language (2) Does anyone use Turing here? It's a Delphi/Pascal based programming language developed by
University of Toronto and is now owned by Holt Software in Toronto. Sample: var name:string var
input:string put "Please enter your name" get name:* cls put "Please enter your message: " ..,
input cls put "Your name is: ", name put "Your message : ", input It should accept your name and
show your name and message. xboxrulz....
VB.NET: Switch Regional Language Automatically
When the field being edited gets FOCUS (1) Switch the language of the Textbox Control automatically upon receiving focus Hi guys, This
tutorial sparked off from my own ventures to incorporate a particular feature in my own software -
which uses mixed language (English & Thai) on a couple of screens to store user data. Certain
fields, apart from First & Last Names & parts of address were to be entered in Thai. Now the current
language can be easily switched by pressing Alt-Left Shift (or whatever key combination you've
set your system to) - but when you consider the same key-combination has to be repe....
Online Multiplayer Game
What language to learn in order make it? (16) If you look at e.g. THIS LINK What language would you use to make something like that?
/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /> ....
What Are The Advantages Of Java Vs C++?
(15) what are the advantages of c++ and what are the advantages of java? what one is more userfriendly,
and what one has more capabilities?....
Array Sorting
Does anyone hava a decent JAVA method (21) does anyone have a decent JAVA method that will sort an array from smallest-to highest?
/mellow.gif" style="vertical-align:middle" emoid=":mellow:" border="0" alt="mellow.gif" /> The one
i'm trying to write doesn't seem to work... or if you could look at mine below, and tell me
what i did wrong, that'd be nice to.(if it reallllyyyyyyyyy sucks, please dont laugh to loud
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> ) This should
take an array and then calculate how many of a number is in it, add it to the first slots....
Basic C++ Language
Getting started with C++ (19) You will need passion , devotion and even obsession to really appreciate C++ Programming.
Lets grab a compiler If you have a C++ Compiler then you are all set for turning your C++ code
into executable files, if you do not then I recommend getting dev-c++ . To learn more about that
compiler I recommend browsing their site. First Program - number.cpp So now I'm going to
write up our first program to learn from, which shows how we can display text to the screen. I know
it's probably a bit simple, so maybe I'll spruce it up a bit, as no matter h....
javascript vs java
(12) in my opinion javascript is better then java becasue java requires more programing experecense
then javascript and i think to that javascript is more reliable then java in some ways....
java.lang.NullPointException
(4) hi, all, I have a question, can anybody give an answer? Thanks in advance. Why the following code
throws NullPointerException? String v =null;
System.out.println("aaaaa"+v==null?"":Integer.toString(v.length())); while the following code not?
String v =null; System.out.println("aaaaa"+(v==null?"":Integer.toString(v.length())));....
Your Most Favourite Computer Language
(84) what do you think??....
Looking for diff, b, w, c, sharp, java, language
|
|
Searching Video's for diff, b, w, c, sharp, java, language
|
advertisement
|
|