Object class is a super class of all class in Java. All inheritance hierarchies starts from Object class followed by other class. Consider example class Shape as parent class of Rectangle and Circle class, in that case Object class is parent or super class of Shape class hence Rectangle and […]

Understanding Object class

Java is a general purpose programming language. The main feature that makes the Java language popular is “WORA” i.e. Write Once Run Anywhere. It means programs once written can run on any platform. Program written in Windows platform and compiled on Windows platform can run on Linux and Mac platform […]

Introduction to Java – What is Java?

eclipse could not create the java virtual machine
Eclipse-Error: Could not create the Java Virtual Machine Eclipse-Error: A fatal exception has occurred. Program will exit. Try following things: Make sure your JAVA_HOME and Path variables for Java path are correctly configured In eclipse.ini make sure that -vm is ahead of -vmargs -vm JAVA_HOME\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.8 Make sure that […]

Eclipse-Error: Could not create the Java Virtual Machine

Before understanding stack trace let use understands how Java applications are executed. Whenever a java application is executed, Heap is used to allocate memory at run time for various objects; apart from heap run time stack is created which is filled and removed for the methods and constructors calls. When […]

Stack Trace in Java