473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

a bsic concept on java .....

dmjpro
2,476 2GB
frnds i have been working in java for 10 months ...

still a basic question is irritating me .....

i have a simple code like this .....

class test
{
public static void main(String args[])
{
//My code
}
}
now my confusion is that ... the test.class will be dropped onto the default package as there is no package specified...
now JVM is outside that package .... but it is still capable of accessing the test class to call the main method to run this program...

how can it be possible ....plz help me out ... thanxxxx a loootttt
Mar 12 '07 #1
2 1070
r035198x
13,262 8TB
frnds i have been working in java for 10 months ...

still a basic question is irritating me .....

i have a simple code like this .....



now my confusion is that ... the test.class will be dropped onto the default package as there is no package specified...
now JVM is outside that package .... but it is still capable of accessing the test class to call the main method to run this program...

how can it be possible ....plz help me out ... thanxxxx a loootttt
Classes in the default package have their class path set automatically.
Mar 12 '07 #2
dmjpro
2,476 2GB
recently i read out about the class loaders .... now i am clear about it ....

thanx for help.... thanx a lot
Mar 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: gaya3 | last post by:
Hi, I have small doubt in packages concept.. i have 2 java files Access1 & Access2 under Declare(folder) Access1: package Declare; class Access1 { String name; double bal;
1
by: subratamaji | last post by:
Hi, I am new to crystal report. Can any one plz guide how to use crystal report 11.5 with visual basic 6.0. Is it already included in visual basic 6.0 or will have to include it from...
15
by: =?UTF-8?B?RXJpayBXaWtzdHLDtm0=?= | last post by:
This is a little bit off topic but I hop you'll forgive me. A few days ago some expressed the opinion (in a post I can't find, but it was probably in one of Razii's threads) that Java's iterators...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.