Can I learn basic Java before Kotlin, or is that not necessary? If I learn Java will it be helpful for Kotlin?


Chanaka Fernando, knows Sinhala
Answered Tue
You don’t need Java knowledge to learn Kotlin or Kotlin knowledge to learn Java. Having said that, If you know Java, that will be helpful when you need to interop with some Java libraries. You can start learning any of Java or Kotlin without prior knowledge of the other.


Ankit Singh, Technology Enthusiast, Blogger
Answered Tue
Kotlin resembles most of the construct as of Java. Having knowledge of Java atleast basics of it will help you in learning Kotlin.

If you start learning Kotlin directly it will take time to understand the language. As it uses various APIs that are in Java.

I would recommend you to go through basics of Java, before starting Kotlin. You don’t have to master Java.


Alexey Soshin, System Architect at Gett (2015-present)
Answered Tue
If you learn Java, it will help understand how Kotlin works better.

But it’s not mandatory to learn Java before Kotlin.

Kotlin is more modern and more pragmatic language. It simplifies a lot of stuff:

less boilerplate
null safety
type inference
generics


Ed Guenther, Using Java throughout my career; basically since the day Java 1.0 was released.
Answered Tue
Keep in mind that both languages run on the Java Virtual Machine. So a good amount of JVM related knowledge is a good thing to have.

Then Kotlin is designed to be fully inoperable with Java - so it also makes sense to know a bit about the Java language. And it often helps to look at some construct B in one language - to then think “hmm, in that other language, I would write that as B*”.

And finally: the true power of programming in Java is the plethora of standard and 3rd party libraries that you have access to. Having a bit of “overview” understand around that is important, too.

So, long story short: it definitely helps. Maybe not necessary, but (imho): very close to necessary.


最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末关拒,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子泪漂,更是在濱河造成了極大的恐慌,老刑警劉巖泽本,帶你破解...
    沈念sama閱讀 221,888評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件胧沫,死亡現(xiàn)場離奇詭異拭抬,居然都是意外死亡,警方通過查閱死者的電腦和手機沦疾,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,677評論 3 399
  • 文/潘曉璐 我一進店門则拷,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人曹鸠,你說我怎么就攤上這事煌茬。” “怎么了彻桃?”我有些...
    開封第一講書人閱讀 168,386評論 0 360
  • 文/不壞的土叔 我叫張陵坛善,是天一觀的道長。 經常有香客問我,道長眠屎,這世上最難降的妖魔是什么剔交? 我笑而不...
    開封第一講書人閱讀 59,726評論 1 297
  • 正文 為了忘掉前任,我火速辦了婚禮改衩,結果婚禮上岖常,老公的妹妹穿的比我還像新娘。我一直安慰自己葫督,他們只是感情好竭鞍,可當我...
    茶點故事閱讀 68,729評論 6 397
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著橄镜,像睡著了一般偎快。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上洽胶,一...
    開封第一講書人閱讀 52,337評論 1 310
  • 那天晒夹,我揣著相機與錄音,去河邊找鬼姊氓。 笑死丐怯,一個胖子當著我的面吹牛,可吹牛的內容都是我干的翔横。 我是一名探鬼主播读跷,決...
    沈念sama閱讀 40,902評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼棕孙!你這毒婦竟也來了?” 一聲冷哼從身側響起些膨,我...
    開封第一講書人閱讀 39,807評論 0 276
  • 序言:老撾萬榮一對情侶失蹤蟀俊,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后订雾,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體肢预,經...
    沈念sama閱讀 46,349評論 1 318
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 38,439評論 3 340
  • 正文 我和宋清朗相戀三年洼哎,在試婚紗的時候發(fā)現(xiàn)自己被綠了烫映。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,567評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡噩峦,死狀恐怖锭沟,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情识补,我是刑警寧澤族淮,帶...
    沈念sama閱讀 36,242評論 5 350
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響祝辣,放射性物質發(fā)生泄漏贴妻。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,933評論 3 334
  • 文/蒙蒙 一蝙斜、第九天 我趴在偏房一處隱蔽的房頂上張望名惩。 院中可真熱鬧,春花似錦孕荠、人聲如沸娩鹉。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,420評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽底循。三九已至,卻和暖如春槐瑞,著一層夾襖步出監(jiān)牢的瞬間熙涤,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,531評論 1 272
  • 我被黑心中介騙來泰國打工困檩, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留祠挫,地道東北人。 一個月前我還...
    沈念sama閱讀 48,995評論 3 377
  • 正文 我出身青樓悼沿,卻偏偏與公主長得像等舔,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子糟趾,可洞房花燭夜當晚...
    茶點故事閱讀 45,585評論 2 359

推薦閱讀更多精彩內容