Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 489943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:51:33+00:00 2026-05-13T01:51:33+00:00

This is a scjp mock exam question. Suppose I have the following two files:

  • 0

This is a scjp mock exam question.

Suppose I have the following two files:

package pkg;

public class Kit {
    public String glueIt (String a, String b) {return a+b;}
}

import pkg.*;

class UseKit {
    public static void main(String[]args) {
        String s = new Kit().glueIt(args[1],args[2]);
        System.out.println(s);
    }
}

And the following directory structure:

test
   |--UseKit.class
   |
   com
     |--KitJar.jar

The current directory is test and the file pkg/Kit.class is in KitJar.jar

According to the answer, the java invocation that produces the output b c is

java -classpath com/KitJar.jar:. UseKit a b c 

Please explain the use of the operators “:” and “.”

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:51:33+00:00Added an answer on May 13, 2026 at 1:51 am

    : is the separator for entries in a Java classpath. . means “current directory”. So the classpath com/KitJar.jar:. means to look for Java class files in two locations: com/KitJar.jar and the current directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw this one question in scjp preparation book. public class Yikes { public
While studying for the SCJP 6 exam, I ran into this question in a
I have this code form the book SCJP: 1. class Mammal { 2. String
I've been doing some practice for my O/SCJP exam. Consider the following code: public
I am reading for SCJP and I have a question regarding this line: Identifiers
This code is taken from a SCJP practice test: 3. public class Bridge {
I was reading the OCPJP (SCJP) book, when I came across this question in
I'm studying for Java Programmer Certification (SCJP) exam. A question about exceptions, when handle
This is my MVC model: public class Link { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Guid ID {
I'm studying up for the SCJP exam, upon doing some mock tests I came

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.