-
نکاتی در مورد پلی مورفیسم و Overloading در جاوا
یکشنبه 15 مردادماه سال 1391 14:12
Writing more than one method with the same name but their job is different is as known as polymorphism. polymorphism has 2 type: 1-static polymorphism 2-dynamic polymorphism static polymorphism: it is known as a compile time polymorph. by using the methods we know which method are going to be executed before...
-
تفاوت == و Equals در جاوا
یکشنبه 15 مردادماه سال 1391 13:45
what is different between "==" and equals methods? The "==" operator compares the address of both of the objects if both are same it will return true else false. equals method compare the content. if contents are same it will be return true else false.
-
توضیح در مورد ایجاد String با یا بدون استفاده از new در جاوا
یکشنبه 15 مردادماه سال 1391 13:21
Q1: What is difference between create String with the new keyword or without a new keyword? String s1 = new String("NIIT"); String s2 = "NIIT"; the first statement will create the object of string type without searching anywhere. the second statement will search String Constant Pool, the same...
-
چند روش برای ایجاد String در جاوا
یکشنبه 15 مردادماه سال 1391 12:33
we can create String in 4 ways in Java: as character array char n[] = {'n','i','i','t'}; by create an object with string class String s1 = new String('niit'); String s2 = "niit"; without a new keyword by Stringbuffer class object. StringBuffer b1 = new StringBuffer("niit") StringBuffer is another...
-
چند نکته در مورد آرایه و String در جاوا
یکشنبه 15 مردادماه سال 1391 12:25
All members of one array has the same data type. Array is fix length variable. Array are known as fixed length variables that stores homogeneous (similar type) type of data. In java we can create an array as "type name of array [] = new type[size]" Example: int x[] = new int[10]; Test t[] = new Test[3];...
-
garbage Collection در جاوا
یکشنبه 15 مردادماه سال 1391 12:16
JVM does the garbage collection action
-
چند نکته در مورد Context و Static در جاوا
یکشنبه 15 مردادماه سال 1391 12:09
static is a keyword. context will be created 1 time but object will be created many times. context of the class is a memory location present inside RAM. context is used to Load static members. the context of the class will be created only one per class. JVM creates context of the class. basically the members of the...
-
تفاوت های Method و Constructor در جاوا
یکشنبه 15 مردادماه سال 1391 11:58
Differents between Method and Constructor are as follows: Constructor Method does not contain any return type has a signature of return type, name and the arguments should be same as class name method name can not be same as a class name Constructor can be called only once per object we can call a method n number of...
-
چند نکته در مورد Constructor در جاوا
یکشنبه 15 مردادماه سال 1391 11:47
Constructor is same as method without return type. It's job only an initialization the instance variables with the default values. Explicitly we can not call the constructor. JVM has to call the constructor. Constructors name should be same as the class name. The constructor can be created when the we create the...
-
data type در جاوا
شنبه 14 مردادماه سال 1391 23:27
Java support 8 different data typs. They are categorized in 4 Groups in Logical group Java does not use 0 and 1, Java uses true and false Integer:default is 0 Real:default is 0.0 Character: default is space Logical: default is false Byte (1 byte) Float (4 byte) char (2 byte) boolean (1 bit) Short (2 byte) double (8...
-
چند نکته در مورد Object و Method در جاوا
شنبه 14 مردادماه سال 1391 22:52
Object is an instance of a class. Instance is a memory location at RAM that created dynamically at run time. Object is a memory location in the RAM reserved dynamically for the members of the class. we can create an object by providing/using a "new" keyword with constructor. After creation of object we need...
-
نکاتی در مورد Class در جاوا
شنبه 14 مردادماه سال 1391 22:01
Class is a user defined data type that contains variables and the methods. Class is a blueprint of an object To declare a class we are using a keyword class and it is followed by the class name The first capital of a class name should be A-z it is conventional it has not compile error Letters of the class name can be...
-
چه زبانی از زبان های برنامه نویسی 100% شی گرا است؟
شنبه 14 مردادماه سال 1391 21:40
class, object, inheritance, Polymorphism, Data Abstraction, Encapsulation are OO properties. each language who support all of them is 100% OO language. C++ is not a 100% OO language but Java is a 100% Object Oriented Language.
-
رابطه بین Platform Independency و class. فایل و JVM در جاوا
شنبه 14 مردادماه سال 1391 21:22
How platform independency can be achieved in java? The platform independency can be achieved using the .class file and JVM(Java Virtual Machine)
-
تعریف Platform Independency
شنبه 14 مردادماه سال 1391 21:00
Java is a platform independent programming language. What is "platform independency"? The compilated code of one program which is capable to execute on any platform.
-
تعاریفی در مورد جاوا
شنبه 14 مردادماه سال 1391 20:50
Java is not a software. Java is a programming language. Java is an object oriented language. Java is a platform independent programming language.
-
معرفی سایت برای یادگیری جاوا
جمعه 30 تیرماه سال 1391 23:16
http://docs.oracle.com/javase/tutorial
-
جاوا- نصب JDK 7 و تعریف Environment Variables
یکشنبه 25 تیرماه سال 1391 10:32
1-وقتی JDK 1.0.7 را روی سیستم نصب کنیم، پس از پایان نصب خواهیم دید که در مسیر پیش فرض به عنوان مثال در مسیر C:\Program Files\Java دو فولدر به نام های jdk1.7.0 و jre7 قرار دارند. قبل از هر کاری ابتدا باید مسیر فولدر bin هر یک از این دو را در Environment Variables اضافه کنیم. برای این کار روی MyComputer کلیک راست می...
-
مرجع یادگیری جاوا
یکشنبه 25 تیرماه سال 1391 09:02
1-کتاب Head First Java برای یادگیری جاوا مناسب است که می توان آن را دانلود کرد. 2-از سایت www.java.sun.com می توان JDK و JRE را دانلود کرد که برای کامپایل و اجرای برنامه های جاوا مورد نیاز می باشند. 3-از سابت www.java.sun.com می توان داکیومت های جاوا از جمله java SE API را دانلود کرد. شرح کامل کلاس ها، اینترفیس ها و...
-
معرفی کتاب برای آموزش جاوا
جمعه 23 تیرماه سال 1391 20:39
کتابی که در آدرس زیر قرار دارد، برای شروع یادگیری جاوا مناسب است: http://www.certified-easy.com/aa.php?isbn=ISBN:8177228366&name=Core_Java:_An_Integrated_Approach
-
XML
پنجشنبه 31 فروردینماه سال 1391 22:00
XML توسط W3C استاندارد شده است. www.w3c.org
-
دسترسی به Constructor کلاس پدر
چهارشنبه 30 فروردینماه سال 1391 21:40
وقتی در کلاس فرزند هستیم و Constructor آن را از ()base مشتق کنیم یعنی می خواهیم به Constructor کلاس پدر دسترسی داشته باشیم. public myclass() : base() { }
-
رابطه Property و Field های یک کلاس
چهارشنبه 30 فروردینماه سال 1391 18:35
در یک کلاس Property ها نقش یک واسطه را برای Field ها بازی می کنند. به عبارتی دیگر می توان گفت که Property های یک کلاس، یک فیلتر دسترسی به فیلدهای آن کلاس هستند.
-
استفاده از متد TryPars در #C
یکشنبه 7 اسفندماه سال 1390 16:42
دستور زیر متغیر result را pars می کند و در صورتی که بتواند آن را به DateTime تبدیل کند، مقدارش را در متغیر myDate می ریزد و مقدار parsResult را true قرار می دهد. اگر نتواند result را به DateTime تبدیل کند، مقدار myDate را null می گذارد و مقدار parsResult را نیز برابر با false قرار می دهد. if (result != null) { bool...
-
دستور مرتب کردن خروجی یک کوئری - Pl/Sql
دوشنبه 26 دیماه سال 1390 11:42
این کوئری رکوردها را به صورتی برمی گرداند که رکوردها بر اساس فیلد Myfield به صورت صعودی مرتب شده اند. اگر به جای asc که در انتهای کوئری آمده است از desc استفاده می شد رکوردها براساس فیلد Myfield به ترتیب نزولی مرتب می شدند: select c . myfield from mytable c order by c . myfield asc
-
کوئری برای به دست آوردن طول فیلد یا حجم تصویر-Pl/Sql
یکشنبه 25 دیماه سال 1390 15:09
با استفاده از دستور زیر می توان طول دیتای فیلد موردنظر را در دیتابیس به دست آورد. اگر myfield از نوع string باشد با این دستورمشخص می شود که چند کاراکتر دارد. اگر هم تصویر باشد با این دستور مشخص می شود که حجم آن چند بایت است: select length( mytable . myfield ) from mytable
-
تولید کد یونیک در #C
سهشنبه 22 آذرماه سال 1390 15:42
با استفاده از متد NewGuid در کلاس Guid می توان کد یونیک تولید کرد که طولش 32 است: System.Guid.NewGuid();
-
راهنمای تولید گزارش با استفاده از نرم افزار StimulSoft
جمعه 18 آذرماه سال 1390 20:25
در پروژه های دات نتی، برای ایجاد گزارش می توان از نرم افزار StimulSoft استفاده کرد. راهنمای نحوه تولید گزارش با این نرم افزار، در مسیر زیر قرار داده شده است: http://s2.picofile.com/file/7207970963/ReportUserManual.pdf.html
-
موجودیت و کلاس
یکشنبه 29 آبانماه سال 1390 15:39
موجودیت هایی(Entity) که در دنیای واقعی وجود دارند در زمان پیاده سازی با روش برنامه نویسی شی گرایی به کلاس تبدیل می شوند. به عنوان مثال گل و درخت دو موجودیت در دنیای واقعی هستند که در زمان برنامه نویسی دو کلاس به نام گل و درخت ایجاد می شود.
-
تفاوت کلمه ی کلیدی Ref و Out در زمان ارسال پارامتر به متد
چهارشنبه 11 آبانماه سال 1390 14:34
Ref آدرس و مقدار اولیه را به متد ارسال می کند ولی o ut هدف مقدار گرفتن در یک متد را دارد.