{"id":564,"date":"2006-02-13T01:00:00","date_gmt":"2006-02-12T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2006-02-13-1.html"},"modified":"2026-08-10T14:35:05","modified_gmt":"2026-08-10T05:35:05","slug":"2006-02-13-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2006-02-13-1.html","title":{"rendered":"C# \u3067 Java \u3068\u540c\u7b49\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b"},"content":{"rendered":"<p>\nJava \u30d7\u30ed\u30b0\u30e9\u30de\u304c C# \u3092\u5b66\u3076\u969b\u306e\u30e1\u30e2\u305d\u306e\uff12\u3002<br \/>\n&nbsp;<br \/>\n&#8211; Java<br \/>\npublic: \u3069\u3053\u304b\u3089\u3067\u3082\u30a2\u30af\u30bb\u30b9\u53ef<br \/>\nprotected: \u81ea\u30af\u30e9\u30b9\u5185\u3068\u5b50\u5b6b\u30af\u30e9\u30b9\u3001\u307e\u305f\u306f\u540c\u4e00\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u3067\u3042\u308c\u3070\u30a2\u30af\u30bb\u30b9\u53ef(default \u6a29\u9650\u3082\u517c\u7528)\u3002<br \/>\ndefault: \u540c\u4e00\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u3002\u30a2\u30af\u30bb\u30b9\u4fee\u98fe\u5b50\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3002<br \/>\nprivate: \u81ea\u30af\u30e9\u30b9\u5185\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u3002<br \/>\n&nbsp;<br \/>\n&#8211; C#<br \/>\npublic: \u3069\u3053\u304b\u3089\u3067\u3082\u30a2\u30af\u30bb\u30b9\u53ef(\u5165\u308c\u5b50 enum,interface \u306e\u30c7\u30d5\u30a9\u30eb\u30c8)\u3002<br \/>\nprotected internal: \u540c\u4e00\u30a2\u30bb\u30f3\u30d6\u30ea(DLL \u30d5\u30a1\u30a4\u30eb, EXE \u30d5\u30a1\u30a4\u30eb\u7b49)\u5185\u3068\u5b50\u5b6b\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef\u3002<br \/>\ninternal: \u540c\u4e00\u30a2\u30bb\u30f3\u30d6\u30ea\u5185\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef(\u540d\u524d\u7a7a\u9593\u76f4\u4e0b\u3067\u5ba3\u8a00\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u306e\u30c7\u30d5\u30a9\u30eb\u30c8)\u3002<br \/>\nprotected: \u81ea\u30b3\u30f3\u30c6\u30ca(\u30af\u30e9\u30b9\u7b49)\u5185\u3068\u5b50\u5b6b\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u53ef\u3002(Java \u3068\u9055\u3044\u540c\u4e00\u540d\u524d\u7a7a\u9593\u306f\u4e0d\u53ef)<br \/>\nprivate: \u81ea\u30b3\u30f3\u30c6\u30ca\u306e\u307f\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef(\u5165\u308c\u5b50 class, struct \u306e\u30c7\u30d5\u30a9\u30eb\u30c8)\u3002<br \/>\n&nbsp;<br \/>\n\u6ce8\u610f\u3059\u3079\u304d\u306f\u3001protected \u306e\u52d5\u4f5c\u306e\u9055\u3044\u3068\u3001default(Java) \u3068 internal(C#) \u306e\u5236\u9650\u7bc4\u56f2\u306e\u9055\u3044\u3067\u3059\u3002<br \/>\nJava \u3067\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30ec\u30d9\u30eb\u3067\u306e\u5236\u9650\u304c\u53ef\u80fd\u3067\u3059\u304c\u3001\u8a00\u8a9e\u3067\u5236\u9650\u3092\u304b\u3051\u305f\u3060\u3051\u3060\u3068\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3078\u306e\u4fb5\u5165\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3092\u9632\u3050\u306b\u306f JAR \u3092\u4f5c\u308b\u6642\u306b<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/ja\/docs\/ja\/guide\/extensions\/spec.html#sealing\">\u30b7\u30fc\u30ea\u30f3\u30b0\u6a5f\u69cb<\/a>\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5229\u7528\u8005\u306e\u4fb5\u5165\u3092\u5236\u9650\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u306e\u4e0d\u6b63\u306a\u66f8\u304d\u63db\u3048\u3092\u9632\u3050\u306b\u306f<a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/ja\/docs\/ja\/tooldocs\/windows\/jarsigner.html\">JAR\u3078\u306e\u7f72\u540d<\/a>\u6a5f\u80fd\u7b49\u3092\u4f7f\u3048\u3070\u3088\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\nC# \u3067\u306f\u3001\u30a2\u30bb\u30f3\u30d6\u30ea(\u30d7\u30ed\u30b0\u30e9\u30e0, \u30e9\u30a4\u30d6\u30e9\u30ea)\u5358\u4f4d\u3067\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u304c\u53ef\u80fd\u3067\u3001\u540d\u524d\u7a7a\u9593\u5358\u4f4d\u3067\u306f\u5236\u9650\u3067\u304d\u307e\u305b\u3093\u3002\u30a2\u30af\u30bb\u30b9\u5236\u9650\u304c\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u5358\u4f4d\u3067\u306f\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\t <br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/www.microsoft.com\/japan\/msdn\/library\/default.asp?url=\/japan\/msdn\/library\/ja\/csref\/html\/vclrfdeclaredaccessibilitypg.asp\">C# \u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u30ba\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 &#8211; \u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u30ec\u30d9\u30eb<\/a><br \/>\n&#8211; <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/ja\/docs\/ja\/guide\/jar\/jar.html#Main%20Attributes\">JAR\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u306e\u30e1\u30a4\u30f3\u5c5e\u6027<\/a><br \/>\n&#8211; JavaHouse Brewers 19189 &#8211; Package Joining Attack(JDK1.2 \u3067\u306e\u8a71)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java \u30d7\u30ed\u30b0\u30e9\u30de\u304c C# \u3092\u5b66\u3076\u969b\u306e\u30e1\u30e2\u305d\u306e\uff12\u3002 &nbsp; &#8211; Java public: \u3069\u3053\u304b\u3089\u3067\u3082\u30a2\u30af\u30bb\u30b9\u53ef protected: \u81ea\u30af\u30e9\u30b9\u5185\u3068\u5b50\u5b6b\u30af\u30e9\u30b9\u3001\u307e\u305f\u306f\u540c\u4e00\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u3067\u3042\u308c\u3070\u30a2\u30af\u30bb\u30b9\u53ef &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2006-02-13-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">C# \u3067 Java \u3068\u540c\u7b49\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[72,42],"class_list":["post-564","post","type-post","status-publish","format-standard","hentry","category-lifehack","tag-c23","tag-java"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=564"}],"version-history":[{"count":1,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/564\/revisions"}],"predecessor-version":[{"id":1551,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/564\/revisions\/1551"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}