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 8967287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:12:33+00:00 2026-06-15T17:12:33+00:00

Lets take a val m = Scala is fun IntelliJ helps figure out a

  • 0

Lets take a

val m = "Scala is fun"

IntelliJ helps figure out a lot of things that can be done with this

enter image description here

Is there a way for me to know which of these functions come from Scala and which ones come from Java?

  • 1 1 Answer
  • 0 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-06-15T17:12:34+00:00Added an answer on June 15, 2026 at 5:12 pm

    In IDEA’s autocompletion, bold entries are methods defined on the type of the object itself, while underlined functions are added by implicit conversions and pimp-my-library (for explanation, see for instance here or search on StackOverflow or Google).

    However, for the special case of types which are defined in Java (like String, the type of m), you happen to be right on the Java-vs-Scala distinction: there bold methods are real methods, which must be defined within the type of m (here String) and thus in Java. While pimp-my-library is a Scala pattern, so typically underlined functions will be written in Scala (this is just a rule of thumb, but I’ve never yet seen an exception).

    Non-bold functions are simply inherited.

    For the amount of documentation, as a rule of thumb the Java standard library has quite comprehensive documentation (it’s supposed to be a specification for the method) while Scala varies typically between less and much less documentation.

    I’ve searched for how to change the fonts used for this highlighting in IntelliJ 11, but I’ve not found much – you can change fonts used to highlight the code, but I suspect that doesn’t make a difference here.

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

Sidebar

Related Questions

Lets take an example : i have an executable named a.out. This contains binary
I have a question for you that I can't seem to figure out on
Lets take the example from Yelp: http://www.yelp.com/boston You can see that it's a website
Lets take stackoverflow as an example: Post Postid Title Mess -------------------------------------------------- 1 Title1 This
I have a very basic question. Lets take this snippet: #include <stdio.h> void foo(void)
Is it possible to generate comments for closing div tags, lets take this ex.
I'm creating an app that lets users take and store photos in a Core
I currently have an iPhone app that lets the users take video, upload it
I see this quite a bit with online apps. Lets take, for example, the
lets take this example <class name=Product> <id name=serialNumber column=productSerialNumber/> <property name=category column=category /> <set

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.