Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 161951

Java is a high-level, platform-independent, object-oriented programming language originally developed by Sun Microsystems. Java is currently owned by Oracle, which purchased Sun in 2010.

7 votes

Should we avoid language features that C++ has but Java doesn't?

Because in Java you dereference with "." while here it's "->. You may be asked to convert the code to Java some day Or C#. Or Haskell. Or Python. Or Ruby. Or COBOL (yes, you can!). … You've also only mentioned very few "things that C++ has but Java does not". One of the biggest differences between C++ and Java is the control over memory layout. …
Agent_L's user avatar
  • 387
1 vote

What is different between the internal design of Java and C++ that lets C++ have multiple in...

In Java, interface is unique by not inheriting from Object. Java solves the "dreaded diamond" problem in same way that 99% of C++ code does it: by not letting diamonds to happen in the first place. … Or "none that matter to overwhelming majority of Java users". …
Agent_L's user avatar
  • 387
2 votes

Are "plus" and "minus" appropriate method names?

In .NET the naming is different although the result is exactly same. Instead of: tomorrow = LocalDateTime.plusDays(1); there is: tomorrow = DateTime.Now.AddDays(1); This only means that differen …
Agent_L's user avatar
  • 387