Start Blog Seite 84130

トランプ大統領 NAFTAはメキシコとの関係中心に見直し

0

アメリカの トランプ大統領は、 カナダの トルドー首相と会談し、 カナダとメキシコと結んでいるNAFTA=北米自由貿易協定について「カナダとは微調整…
アメリカのトランプ大統領は、カナダのトルドー首相と会談し、カナダとメキシコと結んでいるNAFTA=北米自由貿易協定について「カナダとは微調整する。メキシコとは極めて不公平なので公平な協定にしていく」と述べ、メキシコとの関係を中心に協定の見直しに向けた協議を進めていく考えを示しました。 トランプ大統領はかねてからアメリカの雇用が奪われているなどとしてNAFTAの見直しを主張し、加盟国のカナダとメキシコにどのくらい厳しい姿勢で臨んでいくのか注目されています。 こうした中、13日、首都ワシントンでトランプ大統領とカナダのトルドー首相との初めての直接会談が行われ、自由で公平な貿易の推進で協力することが重要だという認識で一致しました。 そして共同記者会見でトランプ大統領は、NAFTAについて「カナダとは優れた貿易関係をもっているので、微調整していくつもりだ」と述べ、トルドー首相も「両国の国民のため、いかに雇用を創出していくか引き続き意見を交わすことにしている」と応じました。 一方でトランプ大統領はメキシコについては「何年もの間、メキシコとの貿易はアメリカにとって極めて不公平だった。両国にとって公平な貿易協定にしていく」と述べ、メキシコとの関係を中心に、NAFTAの見直しに向けた協議を進めていく考えを示しました。メキシコには自動車産業を中心に日本企業も多く進出していて、NAFTAをめぐる協議の行方が注目されます。

Similarity rank: 8.4
Sentiment rank: 4.6
TW posts: 6
TW reposts: 4
TW likes: 3
TW sentiment: 10

© Source: http://www3.nhk.or.jp/news/html/20170214/k10010875571000.html
All rights are reserved and belongs to a source media.

フリン米大統領補佐官が辞任 後任は不倫(フリン)問題で執行猶予中のあの人?

0

フリン氏の 行動は、 民間人が外交政策を禁じる法律に違反する可能性がある。
ホワイトハウスの国家安全保障担当マイケル・フリン大統領補佐官は2月13日夜、ドナルド・トランプ大統領就任前に駐米ロシア大使と接触した疑惑を受けて 辞任した 。
フリン氏はトランプ大統領就任前にセルゲイ・キスリャク駐米ロシア大使と連絡をとり、経済制裁解除について協議していた疑惑が報じられていた。フリン氏の行動は、民間人が外交政策を禁じる法律に違反する可能性がある。
この数カ月間、フリン氏はトランプ大統領就任前にロシア駐米大使と電話で密談したという疑惑を否定してきた。
マイク・ペンス副大統領も繰り返し「アメリカの対ロシア制裁措置についてロシアとは協議していない」と、疑惑を否定していた。
しかし2月9日、 ワシントンポスト は、フリン氏の電話について知っているという9人の情報源の話をもとに、密談はあったと報じた。フリン氏は「大使との電話協議で経済制裁について全く話さなかったという確信が持てない」と、これまでの説明が虚偽だったことを事実上認め、ペンス副大統領に 謝罪した 。
就任後4週目のスタートとなった13日、ドナルド・トランプ大統領は、フリン氏が政府高官に虚偽報告したという報道を受け、同氏の解任を求める強い圧力に直面していた。
トランプ氏は10日、フリン氏と他の最高顧問たちと共にパーム・ビーチに向かう大統領専用特別機の中で、「疑惑についての報告書は見ていない。調べるつもりだ」と、同乗する記者団に約束した。大統領が戻った12日夜、フリン氏は大統領専用特別機から出てきた側近の中にいた。この時点ではトランプ氏はフリン氏を擁護していた。
しかし、フリン氏の電話疑惑について新事実が明るみになり、他の政権高官との間に亀裂が生じていることから、トランプ氏は不満を募らせ、フリン氏は苦しい立場に追い込まれていた。
フリン氏は13日、特殊作戦部隊での晩餐会に向けた演説を突然 取り止めた 。しかし、政権側は、フリン氏による演説は予定されていなかったと主張した。
ホワイトハウスは安保担当の大統領補佐官代行に、退役陸軍中将のジョゼフ・キース・ケロッグ氏を指名した。ある情報筋は、大統領の側近たちが現在、後任の大統領補佐官に「複数の選択肢を準備しようとしている」と語った。フリン氏が辞任したことで、新しい担当選びが加速するとみられる。
現在、フリン氏の後任候補として、元陸軍大将デヴィッド・ペトレイアス氏が挙がっていると、国家安全保障理事会の現職員、元職員らがハフィントンポストUS版に匿名で語った。ペトレイアス氏は元CIA長官で、イラク戦争とアフガニスタン紛争でアメリカ軍を指揮した人物だ。国家安全保障や情報機関関係者の間で信頼が厚い。
しかし、ペトレイアス氏の任命には障害もある。2015年の春、ペトレイアス氏は機密情報を彼の伝記の著者であり、不倫の関係にあったポーラ・ブロードウェル少佐に漏らした罪を認めた。司法取引の結果、ペトレイアス氏は2年間の執行猶予が与えられているが、期間満了を迎えるのはこの春だ。まだ執行猶予期間中のペトレイアス氏にトップレベルの機密情報を扱う許可が与えられるのかは不明だ。
トランプ氏は大統領選で、機密情報の誤った取り扱いについて民主党の対立候補ヒラリー・クリントン氏を執拗に激しく非難した。理論的には、トランプ氏が突然意見を変え、執行猶予期間中の人物を公職に任命することは難しい。
しかしペトレイアス氏の任命は、大統領がアメリカ中央情報局(CIA)との 関係を修復 するにあたり大きな役割を果たすことになる。CIAはかねてから大統領と、フリン氏を含むトランプ政権の核となる側近グループに警戒してきた。
「ペトレイアス氏が任命されれば、みんな満足するだろう。それは間違いない」と、ホワイトハウスの側近たちは語った。
2016年末、トランプ氏はペトレイアス氏の国務長官任命を検討したことがあったが、最終的にはエクソンモービルの元CEOレックス・ティラーソン氏を任命した。その際、ペトレイアス氏は「生涯を通じてアメリカに奉仕してきたことが、ブロードウェル氏との不倫問題という深刻な過ちを埋め合わせるのに十分かどうか判断するのは、トランプ大統領次第だ」と述べた。
「ホワイトハウスがそれを織り込み済みとするかどうかだ」と、ペトレイアス氏はABCニュースに自分の前科について話した。また、「38年半にわたって軍とCIAでアメリカに奉仕してきたことももちろん、織り込済みにしなければならない」とも語った。
ハフィントンポストUS版 より翻訳・加筆しました。
▼画像集が開きます
(スライドショーが見られない方は こちら へ)

Similarity rank: 4.4

© Source: http://www.huffingtonpost.jp/2017/02/14/michael-flynn_n_14735080.html?utm_hp_ref=japan&ir=Japan
All rights are reserved and belongs to a source media.

慶大再就職、違法の疑い 文科次官もあっせん認識か

0

文部科学省の 元幹部(61)が、 組織的天下りの 調整役だった人事課OBの 嶋貫和男氏(67)の 仲介で慶応大に再就職していた事案は、 内閣府の 再就職等監視委員会が違法の 疑いがあると指摘した28件の あっせん事案の うちの 1件であることが13日、 分かった。 文科省によると、 前川喜…
文部科学省の元幹部(61)が、組織的天下りの調整役だった人事課OBの嶋貫和男氏(67)の仲介で慶応大に再就職していた事案は、内閣府の再就職等監視委員会が違法の疑いがあると指摘した28件のあっせん事案のうちの1件であることが13日、分かった。文科省によると、前川喜平前事務次官や当時の人事課長も認識していたとみられる。今後の調査で幹部や人事課の関与が確認されれば、省ぐるみの違法あっせんの問題が拡大する可能性がある。 一方、慶応大は同日、嶋貫氏に2015年春ごろ人材紹介を依頼し、16年1月に元幹部の面接をしたことを明らかにした。

Similarity rank: 7.7
Sentiment rank: -2

© Source: http://www.tokyo-np.co.jp/s/article/2017021301002139.html
All rights are reserved and belongs to a source media.

Get ready to grab your Google I/O tickets

0

If you’re hoping to attend Google I/O in May, you can apply for tickets to the annual developer conference Feb. 22-27.
Hoping to go to Google’s annual developer conference this spring?
If you are, mark your calendar for Feb. 22. That’s the day when you can first apply for tickets to Google I/O.
Google announced on its events page that the window for submitting ticket applications is between Feb. 22 at 1 p.m. ET and Feb. 27 at 8 p.m. ET.
The conference is being held May 17-19 at the Shoreline Amphitheatre in Mountain View, Calif.
This is the second year that the event will be held in Mountain View. Last year, Google broke from the traditional I/O venue – the Moscone Center in downtown San Francisco – and moved the event to the outdoor amphitheatre.
In 2016, the company drew attention to its efforts in artificial intelligence and machine learning , including presentations on its digital assistant device Google Home and Google Assistant, its Allo chat app and Duo video app .
No word yet on what Google I/O will focus on this year.
More about Google Home Mountain View

© Source: http://www.computerworld.com.au/article/614187/get-ready-grab-your-google-o-tickets/?utm_medium=rss&utm_source=sectionfeed
All rights are reserved and belongs to a source media.

将棋の三浦九段、復帰戦で羽生三冠に敗れる 竜王戦予選

0

将棋ソフトの 不正利用の 疑いが晴れた三浦弘行九段(43)が13日、 約4カ月ぶりの 復帰戦で敗れた。 竜王戦の 予選の 1回戦。 過去の 対戦で大きく負け越している羽生善治三冠(46)に屈した。 東京都渋谷区の 将棋…
将棋ソフトの不正利用の疑いが晴れた三浦弘行九段(43)が13日、約4カ月ぶりの復帰戦で敗れた。竜王戦の予選の1回戦。過去の対戦で大きく負け越している羽生善治三冠(46)に屈した。 東京都渋谷区の将棋会館での対局は午前10時に開始。先手番の羽生三冠はすぐに指したが、三浦九段は頭に手を当てて考え込み、次の手に2分を要した。 昼と夕方の休憩を挟んだ一進一退の攻防の末、共に持ち時間を使い切る熱戦になり、最後は羽生三冠が勝った。この日が誕生日だった三浦九段は、一時有望とみられた局面もあり、ブランクを感じさせない戦いぶりだった。 終局後、三浦九段は「読み抜け…

Similarity rank: 6.5
Sentiment rank: -0.8
TW posts: 13
TW reposts: 3
TW likes: 2
TW sentiment: 10

© Source: http://www.asahi.com/articles/ASK2F62G0K2FUCVL01Q.html
All rights are reserved and belongs to a source media.

南スーダンPKO日報 「抗争」が「戦闘」に変化

0

防衛省が破棄したとしていた南スーダンでの PKO活動に関する文書が保管されていた問題で、 防衛省は去年7月の 武力衝突の 発生時の 文書を新たに公開し…
防衛省が破棄したとしていた南スーダンでのPKO活動に関する文書が保管されていた問題で、防衛省は去年7月の武力衝突の発生時の文書を新たに公開しました。この衝突について、「抗争」という表現が途中から「戦闘」に変わっていて、急速な治安情勢の悪化に現地の部隊が危機感を強めていたことがうかがえます。 防衛省は、南スーダンでPKO活動にあたる自衛隊の派遣部隊が記した「日報」について、情報公開請求に対し、いったんは破棄したと説明しましたが、その後一転して撤回し文書の公開を進めています。 新たに公開されたのは、自衛隊の宿営地がある首都ジュバで、政府軍と反政府勢力の大規模な武力衝突が始まった去年7月7日からの3日分です。 この中では、武力衝突が7日の午後8時から始まり、自衛隊の宿営地の南西で発砲音がおよそ15分の間に30発以上確認されたことが記されていました。 また、武力衝突について、当初は「抗争」と記されていましたが、3日目の7月9日の報告からは「戦闘」という表現に変わっていて、急速な治安情勢の悪化に部隊が危機感を強めていたことがうかがえます。 武力衝突を「戦闘」と表現していたことについて、防衛省は一般的な意味で使ったもので、PKO参加5原則に影響する法的な意味での「戦闘行為」を意識したものではないと説明しています。

Similarity rank: 3.1
Sentiment rank: -2.2
TW posts: 17
TW reposts: 13
TW likes: 5
TW sentiment: -10

© Source: http://www3.nhk.or.jp/news/html/20170214/k10010875431000.html
All rights are reserved and belongs to a source media.

米大統領、北朝鮮へ強硬対応=発射装置は初公開か:時事ドットコム

0

【ワシントン時事】 トランプ米大統領は13日、 トルドー・ カナダ首相との 共同記者会見で、 弾道ミサイルを発射した北朝鮮について「大きな問題であり、 強硬に対応する」 と述べた。 トランプ氏と安倍晋三首相は11日、 滞在先の フロリダ州で北朝鮮を非難する記者発表を行っている。
【ワシントン時事】トランプ米大統領は13日、トルドー・カナダ首相との共同記者会見で、弾道ミサイルを発射した北朝鮮について「大きな問題であり、強硬に対応する」と述べた。トランプ氏と安倍晋三首相は11日、滞在先のフロリダ州で北朝鮮を非難する記者発表を行っている。 米国防総省のデービス報道部長は13日の記者会見で、北朝鮮によるミサイル発射を「強く非難する」と明言。日韓両国の名を挙げて「同盟国の国土と国民を脅威から守るため、必要なあらゆる手段を講じる」と強調した。 デービス部長は会見で、公開された映像の分析結果として、発射されたのは潜水艦発射型を地上発射型に改良した中距離弾道ミサイルで、発射装置は「初めて公開されたものと思われる」と指摘。ミサイルから明るい白の煙が出ていることから、北朝鮮の主張通り固体燃料を使用したとの見方を示した。 発射が成功したかどうかに関しては、「われわれに分かっているのは、(ミサイルが)約500キロ飛行して日本海に落ちたということだけだ。それを北朝鮮が狙っていたのなら、成功ということになる」と述べるにとどめた。(2017/02/14-06:24)

Similarity rank: 2.1
Sentiment rank: -1.5
TW posts: 24
TW reposts: 0
TW likes: 1
TW sentiment: -10

© Source: http://www.jiji.com/jc/article?k=2017021400147&g=int&m=rss
All rights are reserved and belongs to a source media.

Michael Flynn, OPEC, India: Your Tuesday Briefing

0

Here’s what you need to know to start your day.
(Want to get this briefing by email? Here’s the sign-up .)
Good morning.
Here’s what you need to know:
• National security adviser resigns.
Michael T. Flynn quit the post he held for less than a month after it was revealed that he had misled Vice President Mike Pence about a conversation with a Russian diplomat weeks before President Trump’s inauguration.
Mr. Pence is said to have told officials that he believed Mr. Flynn had lied to him in saying that he had not discussed sanctions.
• What led to the decision.
The F. B. I. examined Mr. Flynn’s phone calls after he came under scrutiny, and the Justice Department told the White House last month that Mr. Flynn had not fully explained himself, adding that it feared that he could be vulnerable to blackmail by Moscow.
Here’s a timeline of his tenure, and his resignation letter. Retired Lt. Gen. Joseph K. Kellogg Jr. was named acting national security adviser.
• The newest cabinet member.
The Senate confirmed Steven T. Mnuchin , a former Goldman Sachs banker and Mr. Trump’s top campaign fund-raiser, as Treasury secretary in a 53-to-47 vote.
One of Mr. Mnuchin’s first goals will be to help finalize the administration’s tax plan.
• “HOLY MOLY !!!”
That’s what a member of Mr. Trump’s Mar-a-Lago resort in Florida wrote on Facebook after he witnessed the president discussing North Korea’s missile test on Saturday with top aides and Prime Minister Shinzo Abe of Japan. Critics said they should have moved to a secure location.
Mr. Trump’s meeting with Prime Minister Justin Trudeau of Canada on Monday was more formal. The two leaders discussed ways to maintain their countries’ close political and economic links.
• The air we breathe.
India’s pollution causes about 1.1 million premature deaths each year, rivaling China’s for worst in the world, according to a study out today.
Rapid industrialization, population growth and a lack of government intervention were cited as reasons for India’s environmental crisis.
• Racing to fix a dam.
Evacuation orders for nearly 200,000 people remain in place for areas near the Oroville Dam in California , as more storms are expected this week.
Workers are trying to repair a hole in the dam’s main spillway.
The situation is a drastic reversal for the area, which had been affected by more than five years of drought.
• The Daily, your audio news report.
Today’s show asks: Could the president’s emerging plan for Arab-Israeli peace actually work?
Listen here if you’re on a computer, here if you have an iOS device or here for an Android device.
• Some of the biggest banks in the U. S. are offering customers a chance to ditch their A. T. M. cards and use smartphones to take out cash.
• OPEC members are largely sticking to an agreement to limit production in a bid to bolster oil prices, but how long will they cooperate?
Here’s a quick rundown of the deal, its implementation and its implications.
• Playboy stopped publishing nude photographs last year. Now it’s reversing course.
• U. S. stocks were up on Monday. Here’s a snapshot of global markets.
• Want to stay focused at work today? Remember to take a break .
• At 100 , this man still plays, teaches and conducts. Like the music, he keeps going.
• Recipe of the day : Impress your sweetheart with this easy-to-make chocolate fudge .
• Inside The Times’s archives.
Throughout Black History Month, we’re featuring previously unpublished photographs from the 1960s.
Our latest focus on Tommy Hunt , one of soul music’s first stars and a regular at the Apollo Theater in New York alongside Marvin Gaye, Ray Charles, Diana Ross, The Shirelles, The Supremes and many others.
• Controversy after the Grammys.
The big story to emerge after the awards was the freeze-out of Beyoncé in the top categories.
“It was #GrammysSoWhite come to life ,” our critic writes, adding that the show’s race problem “is so pernicious that some white winners have chosen contrition over exuberance.”
• Literary debate.
An editor and an author discuss which 20th-century dystopian novel best applies to 2017 : “1984” or “Brave New World.”
• The life of a show dog.
Our latest 360 video takes you backstage at the Westminster Kennel Club Dog Show.
• Best of late-night TV.
On Monday, the hosts found a new nemesis: the White House adviser Stephen Miller, who suggested over the weekend that in the future, the president’s authority “will not be questioned.”
Seth Meyers said , “The only way that statement could be more terrifying is if he yelled it in German.”
Valentine’s Day isn’t the only holiday celebrating love today in the U. S.
It is also National Donor Day, a government effort encouraging Americans to register to donate organs, eyes and tissue.
Fifty years ago in South Africa, Dr. Christiaan N. Barnard performed the first human heart transplant. The patient survived just 18 days, but the use of a donor left brain-dead after an accident was heralded by other doctors.
“It was a monumental advance,” one said, “more societal perhaps than medical, because it applied to all organ transplants.”
Dr. Barnard’s second transplant patient lived for 19 months. The surgery was also notable because the donated heart came from a biracial man, a divisive decision during apartheid.
The kidney is the most frequent organ transplanted. The first operation to transfer a kidney that was considered successful took place in Boston in 1954 and involved a man and his dying twin.
Tiff Fehr, a colleague at The Times, saved a fellow journalist in December. She has this advice to anyone considering the brave act: “Donating a kidney was a kind of faith: in people, health care, hospitals and more. I’m gratified it went well on all fronts.”
For information on how to help, here are donation and transplantation organizations .
_____
Photographs may appear out of order for some readers. Viewing this version of the briefing should help.
Your Morning Briefing is published weekdays at 6 a.m. Eastern and updated on the web all morning.
What would you like to see here? Contact us at briefing@nytimes.com .
You can sign up here to get the briefing delivered to your inbox.

Similarity rank: 8
Sentiment rank: 0

© Source: http://www.nytimes.com/2017/02/14/briefing/michael-flynn-opec-india.html?partner=rss&emc=rss
All rights are reserved and belongs to a source media.

Exploring the java.lang Library – Developer.com

0

Learn about the Object class and the collection of wrapper classes of this package, to get a glimpse of the key aspects of the java.lang library.
The java.lang library contains classes and interfaces that are fundamental to every Java program. This package is imported implicitly by the compiler into all programs, so we do not use the import statement to explicitly include it. Due to its tacit nature of inclusion, the significance of its impact often goes unnoticed. The most important class of this library is Object. Every class design in Java is actually a subclass of this class, either directly or indirectly. In other words, Object is the parent of all the classes in Java. Apart from this primordial class, the package contains numerous other classes and interfaces. The article takes on just two of them, the Object class and the collection of wrapper classes of this package, to get a glimpse of the key aspects of this library.
A Java programmer uses inheritance to create classes from existing classes. The primary motivation behind inheritance is to extend the quality of its parent class. That means, if a class has, say, two methods:
and another class, B, extends class A, and has a single method:
class B extends the quality of class A by inheriting the methods defined in class A, in addition to the methods defined within itself.
This is what happens with the Object class. The Object class methods are implicitly inherited by all Java classes. But, the difference is that we do not explicitly use the extend keyword; instead, it is implied by default. In this case, the responsibility of applying the inheritance hierarchy to Java classes rests with the compiler. However, there is no harm in doing so explicitly, although it is utterly unnecessary.
In relation to this, note that the Employee class never inherits the constructor of the Object class as per the object-oriented principle of superclass-subclass relationship. The Object constructor is implicitly called by the Employee constructor as soon as its objects are created. It is the first task of any subclass constructor to call its immediate parent class constructor, either explicitly or implicitly, to ensure that the instance variables inherited from the superclass are initialized properly before using them.
The Object class provides a number of methods that are universally applicable to all its subclasses. The most common of this is the toString() method. This method returns the string representation of an object. It is particularly useful for debugging purposes. It is recommended that every class overrides this method to get a customized string representation of the object. By default, the toString() method returns the package name with class name, concatenated by an ‚@‘ and the hash code of the class instance. As a result, the following two operation invariably have the same string representation:
The hash code is deemed as a distinct integer that uniquely identifies an object. That means if two objects have the same hash code, they actually are an alias or the same object. A hash code is internally implemented by converting the internal address of the object into an integer.
The Object class contains a variation of the wait() method that is used to pause the currently running thread until some other thread invokes the notify() or notifyAll() method for this object.
The protected finalize() method of the class may be overridden to dispose of system resources or to perform other cleanup operations. However, Java does not guarantee that, on invocation of this method, the garbage collector will be promptly put into action nor is it recommended to explicitly use this method.
There is another protected method in the Object class, called clone(). It is mainly overridden to create a copy of the invoked object.
The java.lang library provides wrapper classes for primitive data types such as int, char, float, and so forth. Primitive data types of Java are not part of any the object hierarchy; they are mainly there for performance reasons. There are certain disadvantages of primitive types in Java, such as while passing a primitive data type as a method argument, they are passed by value. There is no way to pass them by reference directly. As a result, it is not possible to share the same instance of a primitive type value across multiple methods. The wrapper class helps in creating an object representation of these primitive data types, somewhat like wrapping the primitive type within a class. This is the reason these classes are called wrapper classes.
The hierarchy of the wrapper classes are implemented as follows.
Figure 1: The wrapper classes hierarchy
The Number is an abstract class, is the base class of all wrapper classes that represent numeric types. It contains abstract methods such as byteValue() , doubleValue() , floatValue() , intValue() , longValue() , and shortValue() , which return the object value according to the different number format such as byte , double , float , int , long , and short respectively.
The Double and Float classes are wrappers for floating-point types. Apart from providing numerous convenient methods, these classes provide constants, such as shown in the following instances:
For Double:
Output:
Similarly, constant values can be obtained for the Float wrapper class. For details on various methods of these classes, refer to the Java API documentation.
Apart from many convenient methods of the Float and Double class, they have two methods, called isInfinite() and isNaN(). These two methods are implemented based on the IEEE floating-point specification of infinity and NaN (Not a Number). The method isInfinity() returns a boolean true value if the value on which it is tested is infinitely large or minutely small in magnitude. And, the method isNaN() returns the true value if the value on which it is tested is not a number.
Output:
Integer , Long , Short , and Byte are wrappers for integer types. Apart from providing numerous convenient methods, these classes provide constants such as follows:
Output:
Similarly, constant values can be obtained for Byte, Short, and Long. For details on various methods of these classes, refer to the Java API documentation.
A quick example of the utility of Integer wrapper class is as follows.
Output:
The Character wrapper class wraps around the primitive data type char. It provides several static methods to categorize characters and alter their cases, such as isDigit() , isWhiteSpace() , toLowerCase() , and so on.
One of the intriguing aspects of this class is the support for Unicode characters. Prior to JDK version 5, Unicode characters are held to a 16-bit char size. With the expansion of Unicode characters, the default size of the char became insufficient to hold a character value ranging from 0 to 10FFFF. As a result, the technique of dealing with Unicode characters underwent interesting changes.
To understand how Java deals with Unicode, we must understand three basic terms: The Basic Multilingual Plane (BMP) includes characters between 0 to FFFF. Unicode characters that are beyond 0 to FFFF are called supplemental characters. The code point is a character in the range of 0 to 10FFFF.
Java uses two char types to represent a supplemental character. The first, char , is called a high surrogate and the last one called a low surrogate. A new method, codePointAt() , is provided to translate between code points and supplemental characters. Also, Java overloaded several pre-existing methods that take an integer argument, such as;
The overload form takes int rather than char as an argument because an int type as a single value is large enough to hold two char s.
Output:
The class Boolean is a wrapper for boolean primitive types. This class provide methods for converting boolean values to a string and vice versa, along with many useful constants. The main use of this class is when we when we want to pass by reference a boolean data type as a method argument.
The java.lang library has many other important classes and interfaces; also, there are many sub packages. But, when one talks about this package, these two categories of classes must be the first point of discussion. Much like the Object class, the package java.lang is also never explicitly imported, unless of course we are using entities defined in many of its sub packages. One should have a very clear idea about what this package offers because it houses many of the basic classes and interfaces in Java.

© Source: http://www.developer.com/java/data/exploring-the-java.lang-library.html
All rights are reserved and belongs to a source media.

Understanding the Java Servlet Life Cycle – Developer.com

0

Understand the life cycle of a servlet to understand the intricacies of the low-level functionalities of servlet programming.
Java Servlet is a platform-independent, container-based Web component used to generate dynamic content in a Web page. It is one of the stable technologies to share server-side resources in client-server programming. Because Servlet runs in a multi-threaded environment provided by the container, the life cycle events are completely dependent upon its efficient implementation. Understanding the life cycle of a servlet is the key to understand the intricacies of the low-level functionalities of servlet programming. This article provides a glimpse of this process in a concise manner.
The container , sometimes referred to as a servlet engine , is provided by a Web or an application server within which servlets run. Similar to simple Java programming, servlets are Java classes compiled to bytecode. These bytecodes are loaded dynamically into a Java technology-enabled Web server. A servlet container is often built into the server by default or sometimes provided as an add-on component via the server’s native extension. The servlet classes generally interact with the server via an HTTP request/response mechanism implemented by the servlet engine. The primary function of the container is to contain servlet classes and manage their life cycle. Apart from supporting HTTP protocol, the servlet container also supports request/response based protocols, such as HTTPS, for a more secure network interaction.
Typically, a servlet goes through the following sequence of events:
Figure 1: Control passing between the client and server
The life cycle begins as soon as it is called by the Web sever to load into the container. Grossly, it has a three-phase life: instantiation and initialization , service , and destruction.
Figure 2: The life cycle
In the initialization phase, the servlet container starts by locating servlet classes either in the local file system or from a remote location. The classes that are critical to start the application must be located at startup. Other classes may be loaded upon service request. The container uses a normal Java class-loader facility to load the classes located either in the local file system or from a remote location.
The initialization process begins after servlet objects are instantiated. It includes reading persistent configuration data, JDBC connection parameters if the application uses a back-end database, and other ancillary activities. The container invokes the init() method of the Servlet interface for the purpose of initialization. All servlet classes must implement javax.servlet. Servlet interface or one of the sub-implementations.
Figure 3: The initialization process
A basic servlet knows nothing about HTTP. Be3cause this is most commonly used in Web interaction at the application layer, a Java servlet offers a special implementation of the servlet, especially designed for this protocol. As a result, it has almost become normal to extend the abstract class called HttpServlet to implement the Web application layer. It contains methods such as:
Other almost-never used methods are service , doTrace , and doOptions. These methods delegate the handle to the doXXX() methods.
Typically, the abstract class GenericServlet is extended if we want to handle another protocol, including HTTP. Because it helps to define a protocol independent servlet, it makes writing the servlet easier. It provides the simpler version of the init and destroy methods. If we are to write a generic servlet, the only abstract method we need to override is the service.
The Servlet interface defines methods that are implemented by its sub classes. This interface is directly implemented by a Java class that wants to do every thing itself, like writing one’s own container.
Only the invocation of the init method of the servlet by the container ensures that the servlet object is in the active container runtime; otherwise, not.
The service phase represents the interaction with the request until the duration of the service is actually destroyed. It may, however, happen that a servlet instance placed for service by the container actually never handled any request during its lifetime. The request and response are mapped to the service method, which in turn delegates the handle to the doXXX() methods. The request and responses are mapped to the objects of ServletRequest and ServletResponse , respectively. The objects are sent as the parameters of the service method. If the request and response type are of HTTP, the object types of HttpServletRequest and HttpServletResponse are used.
The service method implementation must take adequate measures to handle multiple concurrent requests fired by the container.
In this phase, the servlet is removed from the container. The container invokes the destroy method of the Servlet interface. This method ensures that the servlet is terminated gracefully and cleans up all the resources used or created during its life cycle.
The proper use of life cycle phases—initialization, service, and destruction—ensure that the servlet manages the application resources efficiently. During initialization, the servlet loads up all resources it needs to process requests in the later phase. The service phase uses these resources to respond as per requests made and then, in the destruction phase, the memory is freed up with the cleanup process. These three phases are in fact a gross representation of the servlet life cycle. In practice, a Web developer has more things to worry about as one dives deeper. However, they can only be realized once one get one’s hands dirty and resorts to implementation, beginning with this basic concept.

© Source: http://www.developer.com/java/web/understanding-the-java-servlet-life-cycle.html
All rights are reserved and belongs to a source media.

Timeline words data