Core Java Tutorial

Online Core Java Tutorial for beginners to learn the basic concepts of Core Java. Here you will learn the fundamentals of Core Java (Class, Interface, etc.). These sections also contain a cheat sheet for a quick preview of what you have learned on a given topic.

Getting Started

Variables

Operator

Loop

Example

Exception

OOPS Concept

keyword

Collection

Serialization

Enum

Thread

Java 8 Stream

Java 14

Advanced Topics

We have created a new Section of Selenium Tutorial.

200 Comments Core Java Tutorial

  1. Rj 3h3

    import java.util.Scanner;

    class Rextester {
    public static void main(String args[]) {
    int n1 = 0, n2 = 1, n3, i, count = 0;
    Scanner sc = new Scanner(System.in);
    System.out.println(“Enter count : “);
    count = sc.nextInt();
    System.out.println(“Fibonacci Series up to ” + count + ” : “);
    System.out.print(n1 + ” ” + n2);//printing 0 and 1
    //loop starts from 2 because 0 and 1 are already printed
    for (i = 2; i < count; ++i) {
    n3 = n1 + n2;
    System.out.print(" " + n3);
    n1 = n2;
    n2 = n3;
    }
    }
    }

    Reply
  2. Tapasya Srivastava

    you have chosen a nice matter. I understood a lot from this post. Thank you so much for sharing the Awesome information. I appreciate your time and step in your job.

    Reply
    1. JBT

      Hi Umar,

      Thank you for your nice comment.
      You asked why there is topics about job in java section.
      Could you please let me know what section u are talking about.

      Regards
      Admin

      Reply
  3. Avinash Kumar

    Thank you very much for sharing such valuable and informative blog post about how to learn java programming language. I have read many blogs but here i found something new so great explanation keep posting.

    Reply
  4. rajesh

    hi gautham iam cse student iam learning java programming i saw ur tutorial ist very much helpful for frwhers like me tqq and if possible pls share some ohter topics thanks gautham
    regards
    Rajesh

    Reply
  5. Priya

    Informative post !!! Share some more basic concepts of core java it will be helpful for all, thanks for sharing.

    Reply
  6. Mahesh

    Hello ,
    Can u please send me the material of Core Java,Advanced Java, Web Technologies like HTML,CSS,Jquery,Angular JS e.t.c….,
    Please send me the material to [email protected]…………..
    I will be thank U if u send me at the earliest………
    Thank You………

    Reply
  7. venky

    Need help on a java algorithm to display all the positive odd triple digit numbers using switch statement

    Reply
  8. JavaLel

    Lmfao look at all these dickheads on here like: “Sir, give me full core java material to my email”

    Cheap ass low lives who continue to beg you for material you don’t have, yet they can’t shut up and go and fund their own education. What a pathetic breed of human this page attracts.

    Reply
  9. ravi

    Hi ,

    I tried buying the ebook but none of my credit cards work(USA) can you post it some where else ? amazon or other sites ?

    Reply
  10. asad

    This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

    Reply
    1. J Singh

      Hi Risabh,
      I think you should take help for primary java information from java teacher. It will be very difficult for you to gain basic info online. once you have that you can go through any java course on your own.

      Reply
    1. J Singh

      Java is a language which are divided in 3 different modules for 3 different purpose. J2SE (Core functionality), J2EE(used for Web Application) & J2ME(Used for Mobile platform development). In normal terms J2SE is known as Core java while J2EE is known as Advance Java.

      Reply
  11. sachin sakhare

    good evening sir
    sir
    i am beginner pls send core java basic programs pdf file on my email id

    Reply
  12. Chandrika

    Hii sir
    I am new to java.
    I want complete core java tutorials.
    Please send me complete tutorials of core java.

    Reply
  13. Ramjeet maurya

    Hi Sir,

    My task is to make a project on face detection .can you provide the protocol/algorithm
    Which through i can do easly…

    Thanks&Regards
    Ramjeet maurya

    Reply
    1. soumyajit dixit

      sir ,i am student of KIIT university bhubaneswar .i have java as a subject in our third semester.please provide me with core java notes.Thank you……..

      Reply
  14. maddy

    Hi admin,

    I have found all the concepts of core java with detailed description of each topic. You done an amazing piece of work by providing all topics with examples.

    Looking for java tutorials in a video based format, it would be beneficial to us.

    Thanks.

    Reply
  15. Divya mahajan

    I need a home tutor who can teach me jdk java basic programming in i.c.s.e board. There are 10 chapters including array,constructors,functions etc.

    Reply
  16. Amaka obi

    Hi..im a beginer in java programming,i really want to say u are doing a great job and making a difference in this world unknowly to you. Thanks alot and keep the good work going.

    Reply
  17. AKSHAY THAKUR

    hello guys ……

    whats is diff equal() method and == in java……..!!!!!!!
    can anybody knows about it!!!
    if yes ,then kindly explain with example…..

    Reply
  18. Rajinder

    Can any one send me a project on Java on calculator using swings. I want to study it for my knowledge purpose. Or may be any other one Project.

    Reply
  19. David Roy

    Thanks for sharing this.. Its useful for java beginners to know about java and get the knowledge about how to develop it….

    Reply
  20. Mauya

    Hi Everyone!
    i need to re-start learning java, i haven’t practiced since 2013, i have basics in java and C++.
    anyone help me with the material for java,
    I’ll be glad

    Reply
  21. abhinav

    i would like to learn core java but i am not getting anything on that what i able to do,my background is ECE please suggest me something. thanks in advance

    Reply
  22. p prabhakar

    hi….. i am the core java beginner.. i want to learn core java…. is there any way to learn core java easily and perfectly so.. can u please help me…. n also want materils

    Reply
    1. V Gautam

      Hi Prabhakar,

      You are already on a page where you will get link to all article which will be required by you to learn Core Java. Have you visited them? And what exactly do you want?
      Also PDF file is already available which you can buy by paying 100 rs.

      What else you are looking for do let me know. I ll see if i can help you in that regard.

      Regards

      Reply
  23. Rishab

    sir , i am student of class 12 and i.p is my additional subject. I am very much confused in coding specially loop statements .. can you please help me.

    Reply
  24. nancyprasana

    Hi core java learned my college life. now am moving advance java. its how many module there? it is also based on the corejava concept?

    Reply
  25. Ashvin

    Hi Gautham Sir,

    Can you teach me core java on online? if so whats the charges ? I really want to take classes from you.

    Please email me asap with positive response.

    Reply
  26. Chandra

    Hi Gautham,

    Thanks for the quick reply… πŸ™‚
    I am using Eclipse IDE for doing Java programs
    i know the core java concepts but progrmaming making me difficult…
    Not able to get confidence on especially Programming…

    and please tell me clear details about your paid service..
    like what and all topics you cover?? Fees??

    Thanks,
    Chandra

    Reply
  27. Chandra

    Hi Gautham,

    Thanks for very quick reply…
    Ya i am already using Eclipse IDE and doing small programs, But still feeling difficulty in writing big programs… please help me out…
    and about your paid service, please tell me the clear details like what and all contents you will cover,fee details, etc

    Thanks,
    Chandra

    Reply
  28. Chandra

    Hi Gautham,

    Thanks for such a nice tutorial… πŸ™‚
    I am learning java and know core java concepts, but when it comes to write some programs,
    i am feeling difficulty…
    Please let me know the best way to feel it easy and become expert…

    Thanks in Advance

    Regards,
    Chandu

    Reply
    1. Vivekanand Gautam

      Hi Chandra,

      Thanks for your nice comment. If you know the basics then you should not have any problem with writting code. If you want to start coding then you should start with very basics ofcore java like prinitng any value on console. I would suggest you to download Eclipse IDE first.

      I have written different article on how to create Java Project in Eclipse. Once created you can start creating Classes and start playing with same. You can have different assignment available which you can try to solve on your own. Keep in mind that there is no hard and fast rule to learn Java. Only practice can make you perfect.
      While writting code you have specific question you can ask me personally.

      I have a paid service where i use to check the assignment and help learner write code. If you are willing to pay for this let me know.

      Thanks

      Reply
  29. Ankan

    Hi Gautam

    Excellent work done .Really helpful for freshers and some times for experienced people too.
    great job and keep it up.

    If possible provide some sample codes to practice with solutions.

    Reply
    1. Vivekanand Gautam

      Hi Ankan,

      Thanks for your nice word. I would love to add more content if time permit.
      I will take your suggestion and try to add more example.

      Thanks

      Reply
    1. Vivekanand Gautam

      Hi Vivek,

      As you can see i have different topics for different section in Java. You can start learning Java by following Java article sequentially. I do not have any idea of C++ language. So i would not be able to help you in this regard.

      I would suggest you to first buy a good book for the same. Or if you want more clarity then you can refer original document of Java.

      Thanks

      Reply
  30. Brany

    Thank u Gautam, Surely i ll let you know abt my progress… I have not yet started.. Once i start, i ll intimate you…

    Reply
  31. Brany

    Hi Gautam,
    Even i was in need of one project for my practice. I will try to implement for ur requirements. If done, i ll let you know… Hope i may take bit long time as this is my first project for which i am working for and i am sure i ll learn more if i implement it.

    Thank you….

    Reply
    1. Vivekanand Gautam

      Hi Brany,

      Best of luck for this project. I would love to know the progress of this project development. If you can successfully implement this do let me know so that i can add the same on website. So that others can take the help of it. You can also write an article for the same.

      Thanks

      Reply
    1. Vivekanand Gautam

      Hi Ayushi,

      I don’t know what is the purpose of creating this project. But i have one project in my mind because of requirement. So i ll tell you. Try to build it and if successful let me know i might use it.

      We have team of developer where Team Lead assign a work to every one on everyday or weekly basis. and every one in the team has to report to team leader. And leader will analyses in the end what different resources has done in last week or month and generate the report accordingly which will be used in Audit purpose.

      So you will have a web application. It will have two User roles.
      1- Team Lead
      2- Developer

      Roles of Developer
      1- Can view the assigned work by team lead.
      2- Can update the work sheet
      3- Can close the work assigned which in return go back to team lead pool

      Roles assigned to TL role
      1- Can create work
      2- Can assign work created to different user(Developer)
      3- Provide the deadline for different work.
      4- Can generate the report of all work done by developer.

      System functionality.
      1- Once there is any work assigned to any developer mail should be delivered to developer.
      2- When deadline is about to read notification should also reach.
      3- Once developer mark and work as completed. Work should go into TL pool.
      4- Report should be generate in the form of DOC/ Excel

      It is the requirement below the technology stack that you can use
      1- Spring 3.1
      2- Hibernate (Data Persistence)
      3- Spring Security (Role related assignment)
      4- Apache POI (Report Generation)

      I think now i have given you enough information. If you like you can create it. If successful let me know i will glad to add it in my website.

      If you require any more input you can contact me.

      Thanks

      Reply
      1. Deepan Sakravarthi Ranganathan

        Can u tell me.. What r all d questions n java that clasified n simple medium nd tuff 4 interview poit of view??

        Reply
    1. admin

      Hi Gaurav,

      Package is used for organizing classes. This is not something which is enforced by JVM or Java. But it is suggested to have classes defined in proper package coz in that case you can have unique namespace for different classes(even if class name is same.)

      e.g.
      Suppose you and your colleague is working on different modules(Sales and HR ) of the same project and you both are unware of the class name created by other. In the end you might face a situation where both of you have created class with same name(Department). This will create problem. To avoid this problem you both can use package. You can create class in your specific package(com.sales & com.hr). In this way you will avoid conflict of class name. Coz even if class name is same namespace will be unique.

      com.sales.department
      com.hr.department

      hope now you understand the use of package.

      Reply
    1. admin

      Hi Sheetal,

      I am sorry but i can not help you in this regard. This site is collection of my own experiences. I developed this site just for my reference. But eventually it became famous.
      I do not have any consolidated material.

      You have to go through Article by Article only.

      Thanks

      Reply
  32. ANANDAN

    i need core java and j2EE full tutorial materials. can you send my email? PLEASE friends help me…..

    Reply
  33. Bogdan

    cool section! here’s some more:

    1) Junior java developer
    a) Basic ocjp (former scjp) questions:
    – What does static, final mean, purposes;
    – How many accesibility modifiers exist? Please describe them.
    – Why do you need a main method?
    – How many constructors can you have?
    – Define overwriting and overloading
    – Give java API implementations for overwriting and overloading
    – Describe the String class – unique properties
    – StringBuilder vs StringBuffer
    – Collections : please describe, give some examples and compare them to eachother
    – ArrayList vs Vector
    – HashMap vs HashTable
    – What’s a tree
    – What’s a map
    – Multithreading: describe the management in java
    – What’s a semaphone?
    – How many states are there for threads?
    – Describe the usage for synchronized word (2)
    – Serialization in java – a descrition and usage
    – Garbage collection in java – description and usage
    – Can you guarantee the garbage collection process?
    b) Simple design pattern questions:
    – Singleton please describe main features and coding
    – Factory please describe main features and coding
    – Have you used others? please describe them

    2) Intermediate and Senior level – depending on rate of good responses, additional questions to 1):

    Reply

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.