<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>nhóm 8- không tương lai - java 29/08 by </title>
      <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6</link>
      <description>Được tạo với điều ước sao băng</description>
      <language>en-us</language>
      <pubDate>2021-09-29 06:24:51 UTC</pubDate>
      <lastBuildDate>2023-03-12 02:18:28 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Nhiện vụ của các thành viên :</title>
         <author>ngocnganc5</author>
         <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777095180</link>
         <description><![CDATA[<div>Câu 1 : Ngân<br>câu 2: Mai&nbsp;<br>câu 3 : Huân&nbsp;<br>câu 4 : Đỉnh&nbsp;<br>câu 5 : Bình</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:35:39 UTC</pubDate>
         <guid>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777095180</guid>
      </item>
      <item>
         <title>Câu 1: Trong Java có những kiểu dữ liệu nào ? cho ví dụ cụ thể.</title>
         <author>ngocnganc5</author>
         <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777138218</link>
         <description><![CDATA[<div><br>Trong Java có 2 kiểu dữ liệu có sẵn: Primitive (kiểu dữ liệu gốc) và Non-primitive (kiểu dữ liệu đối tượng) Mỗi kiểu ở trên chứa các kiểu dữ liệu con như sau:</div><ul><li><br><ol><li>Primitive:</li></ol><ul><li>Boolean</li><li>Char</li><li>Byte</li><li>Short</li><li>Int</li><li>Long</li><li>Float</li><li>Double</li></ul><ol><li>Non-primitive:</li></ol><ul><li>String</li><li>Array .</li></ul></li></ul><div>Ví dụ :&nbsp;<br>String TEN_SACH =" Tham hiem" ;<br>int MA_ SACH = 1234;&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:56:52 UTC</pubDate>
         <guid>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777138218</guid>
      </item>
      <item>
         <title>2.Phân biệt biến và hằng trong java.Cho ví dụ.Cần lưu ý gì khi đặt tên?</title>
         <author>ngothixuan010190</author>
         <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777139253</link>
         <description><![CDATA[<div>&nbsp;*<strong><em>Biến</em></strong> là đại lượng được đặt tên ,dùng để lưu trữ giá trị và giá trị có thể được thay đổi trong quá trình thực hiện chương trình.Mỗi biến gắn liền với một kiểu dữ liệu và một định danh duy nhất gọi là tên biến.Biến có thể khai báo ở bất kỳ nơi đâu.<br><br>-Ví Dụ:</div><pre><strong>kiểu_dữ_liệu tên_biến = giá_trị;</strong></pre><div><br>*<strong><em>Hằng là đại lượng có giá trị không đổi&nbsp; trong suốt chương trình</em></strong><br>-Ví Dụ:<br><strong>final</strong> <strong>float</strong> PI = 3.14f;</div><div><strong>final</strong> <strong>char</strong> FIRST_CHARACTER = 'a';</div><div><strong>final</strong> <strong>int</strong> VIP_TYPE = 1;<br><br>*Khi đặt tên cần lưu ý:<br>-<strong><em>Ký tự bắt đầu của tên biến phải là chữ cái, hoặc dấu gạch dưới (_), hoặc ký tự đô la ($)</em></strong>.<br>-<strong><em>Không được có khoảng trắng giữa các ký tự của biến<br>-Không chứa ký tự đặc biệt bên trong tên biến như</em></strong><em> </em><strong><em>!@#%^&amp;*<br>-Không được đặt tên biến trùng với keyword</em></strong></div><div><br></div>]]></description>
         <enclosure url="https://i1.wp.com/yellowcodebooks.com/wp-content/uploads/2016/10/feature-green-4.png?resize=810%2C580&amp;ssl=1&amp;is-pending-load=1" />
         <pubDate>2021-09-29 06:57:22 UTC</pubDate>
         <guid>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777139253</guid>
      </item>
      <item>
         <title></title>
         <author>binhvippro575</author>
         <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777153477</link>
         <description><![CDATA[<div>Câu 5: Nêu cách nhập xuất dữ liệu trong java<br><br>Cú pháp nhập dữ liệu:<br><strong>Scanner ip = new Scanner(System.in)</strong>;<br><strong>ip.nextInt()</strong>;<br>Cú pháp in ra màn hình:<br>System.out.println(“Noi dung can in” + biến);<br><br><br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1361625774/cf72cc21ef087c6ec51ad1e13a40eebc/Screenshot__3_.png" />
         <pubDate>2021-09-29 07:04:05 UTC</pubDate>
         <guid>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777153477</guid>
      </item>
      <item>
         <title>Câu 4:</title>
         <author>tranngocnguyendinh</author>
         <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777154074</link>
         <description><![CDATA[<ul><li>Toán tử số học: Toán tử số học được dùng trong các biểu thức toán học</li></ul><div>VD: c=a+b</div><ul><li>Toán tử bit: Các toán tử dạng bit cho phép chúng ta thao tác trên từng bit riêng biệt trong các kiểu dữ liệu nguyên thuỷ</li></ul><div>VD:&nbsp;</div><pre>int a = 60;	/* 60 = 0011 1100 */  
     int b = 13 /* 13 = 0000 1101 */
     int c = 0;

     c = a &amp; b;  /* 12 = 0000 1100 */ </pre><ul><li>Toán tử quan hệ: Kết quả của toán tử quan hệ ta nhận được là <em>boolean (true hoặc false)</em></li></ul><div>VD: a==b =&gt; false</div><ul><li>Toán tử logic: Các toán tử logic làm việc với các toán hạng Boolean. Các toán tử quan hệ được sử dụng trong các cấu trúc điều khiển</li></ul><div>VD: a || b = true</div><ul><li>Toán tử gán: Toán tử gán (=) dùng để gán một giá trị vào một biến và có thể gán nhiều giá trị cho nhiều biến cùng một lúc</li></ul><div>VD: int d=10;<br>&nbsp; &nbsp; &nbsp; &nbsp;a=b=c=d;</div><div><br></div>]]></description>
         <enclosure url="https://maps.googleapis.com/maps/api/staticmap?center=capitol%20building&amp;key=AIzaSyD3kjetwpeAYF-eXThlRhc1F1EYwsQvHcY&amp;scale=2&amp;size=640x480&amp;maptype=satellite&amp;language=en&amp;region=VN" />
         <pubDate>2021-09-29 07:04:23 UTC</pubDate>
         <guid>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777154074</guid>
      </item>
      <item>
         <title></title>
         <author>3120220018</author>
         <link>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777168571</link>
         <description><![CDATA[<div><strong>Câu 3: Có bao nhiêu cách ép kiểu trong Java ? Cho ví dụ cụ thể .<br>.Trong kiểu dữ liệu nguyên , có hai loại ép kiểu dữ liệu:<br></strong><br></div><ol><li><strong>Kiểu chuyển đổi ngầm định (implicit)<br></strong><br>Việc chuyển đổi sẽ tự thực hiện bởi <strong>compiler </strong>và chúng ta không cần làm gì. Việc chuyển đổi này gì dành cho<strong> kiểu dữ liệu nhỏ sang kiểu dữ liệu lớn hơn</strong>. Ta có thể xem chiều từ nhỏ sang lớn như sau:<br><strong><mark>byte -&gt; short -&gt; int -&gt; long -&gt; float -&gt; double</mark></strong><br><br></li><li><strong>Kiểu chuyển đổi tường minh (explicit)<br></strong><br>Ngược lại với cách <strong>chuyển đổi ngầm định</strong>, việc <strong>chuyển đổi tường minh </strong>là chiều ngược lại từ <strong>kiểu dữ liệu lớn hơn sang kiểu dữ liệu nhỏ hơn</strong> (với điều kiện giá trị đó kiểu dữ liệu sẽ thay đổi có thể lưu trữ được trong kiểu dữ liệu mới).<br><strong><mark>byte &lt;- short &lt;- int &lt;- long &lt;- float &lt;- double</mark></strong></li></ol><div><strong>.Ví dụ:</strong><br><strong>1. Kiểu chuyển đổi ngầm định&nbsp; :</strong><br><strong>public</strong> <strong>class</strong> NhanVien {</div><div>&nbsp;</div><div>&nbsp; &nbsp; <strong>protected</strong> String ten;</div><div>&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; <strong>public</strong> String getTen() {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <strong>return</strong> ten;</div><div>&nbsp; &nbsp; }</div><div>&nbsp;</div><div>&nbsp; &nbsp; <strong>public</strong> <strong>void</strong> setTen(String ten) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <strong>this</strong>.ten = ten;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; <strong>public</strong> <strong>void</strong> xuatThongTin() {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Nhân viên: " + ten);</div><div>&nbsp; &nbsp; }</div><div>}</div><div><br><strong>2.Kiểu chuyển đổi tường minh:<br>public</strong> <strong>class</strong> MainClass {</div><div>&nbsp;</div><div>&nbsp; &nbsp; <strong>public</strong> <strong>static</strong> <strong>void</strong> main(String[] args) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Khai báo hai đối tượng nhanVien1 và nhanVien2 từ một lớp NhanVien</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NhanVien nhanVien = <strong>new</strong> NhanVien();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NhanVienFullTime nhanVienFullTime = <strong>new</strong> NhanVienFullTime();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Set tên cho hai nhân viên</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nhanVien.setTen("Hùng");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nhanVienFullTime.setTen("Trang");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Xuất thông tin hai đối tượng lần 1&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nhanVien.xuatThongTin();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // In ra "Nhân viên: Hùng"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nhanVienFullTime.xuatThongTin();&nbsp; &nbsp; // In ra "Nhân viên toàn thời gian: Trang"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Ép kiểu tường minh từ NhanVien sang NhanVienFullTime</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nhanVienFullTime = (NhanVienFullTime) nhanVien;</div><div>&nbsp; &nbsp; }</div><div>&nbsp;</div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 07:11:14 UTC</pubDate>
         <guid>https://padlet.com/ngocnganc5/o1efhhi9rjk7rhs6/wish/1777168571</guid>
      </item>
   </channel>
</rss>
