• Post Reply Bookmark Topic Watch Topic
  • New Topic

core java  RSS feed

 
Ramna Reddy
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,What are the default classes loaded by JVM..before executing any program?
Thanks in advance..
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

There's no list of pre-loaded classes, although you can guess that a lot of classes will in fact be loaded before yours. "Thread" is needed to run anything at all, of course, and, that certainly pulls in "String", which pulls in all sorts of internationalization/localization stuff. Runtime is likely loaded very early, and System, so that System.out is all ready for you. ClassLoader and Class, before any of these! Object, of source: I suppose pretty much everything in java.lang is going to get dragged in before your program starts to execute.
[ August 06, 2006: Message edited by: Ernest Friedman-Hill ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!