Java is a general, all-purpose computer programming language that is circumstantial, class-based, object-oriented, and specially designed to have few application dependencies as possible. Java was developed initially for interactive television, but it was too advanced technology for the digital cable television industry at the time. It is proposed to let application developers "write once, run anywhere, suggesting that compiled Java code can run on all platforms that condone Java without the necessity to recompile. Java applications are compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture.Read More
You must be aware of creating an object of a class by using the new keyword, but that is not the only way to create an Object. There are several other ways to create an object of a class :
- Using new keyword
- Using new Instance (Reflection)
- Using Clone
- Using Deserialization
- Using ClassLoader
- ... don't know :)
With this article we will kick-off a new series where we will look deep into Java’s different collection solutions which are available in the version 1.8. For concrete implementations (like ArrayList or TreeSet) we will give you some use-cases where these collections will excel and some cases where you should use different collections. And of course we will write about the fluent API introduced with Java 8.Read More
Java HashMap is HashTable based implementation of Map. This is the reason why interviewer always asks for the difference between HashMap and HashTable. HashMap is mostly equaled to HashTable except below two differences.
- HashMap is unsynchronized while HashTable is synchronized.
- HashMap permits null while HashTable doesn't. Read More
What is this
this is a keyword in Java. It can be used inside the method or constructor of a class. It(this) works as a reference to the current object, whose method or constructor is being invoked. This keyword can be used to refer to any member of the current object from within an instance method or a constructor.Read More
JVM will always look for a specific method signature to start running an application, and...Read More
Here we will discuss some basics topics related to Java.
- Where to download Java.
- How to install Java.
- Setting up the Environment Variables.
- Our First Java Program.
- How to compile a Java application.
- How to run a Java Application.
- Difference between important terms in Java (JDK vs JRE or J2SE vs J2EE..).