Top "Modifier" questions

What does the "static" modifier after "import" mean?

When used like this: import static com.showboy.Myclass; public class Anotherclass{} what's the difference between import static com.showboy.…

java modifier static-import
What are Transient and Volatile Modifiers?

Can someone explain what the transient and volatile modifiers mean in Java?

java serialization storage modifier
What is the 'open' keyword in Swift?

The ObjectiveC.swift file from the standard library contains the following few lines of code around line 228: extension NSObject : Equatable, …

swift swift3 syntax declaration modifier
SwiftUI - How do I change the background color of a View?

I'm beginning to try out SwiftUI and I'm surprised that it doesn't seem to be straightforward to change the background …

view background background-color modifier swiftui
Can you alter a Javascript function after declaring it?

Let's say I have var a = function() { return 1; }. Is it possible to alter a so that a() returns 2? Perhaps by …

javascript function oop wrapper modifier
How does extern work in C#?

Whenever I look deeply enough into reflector I bump into extern methods with no source. I read the msdn documentation …

c# .net performance extern modifier
Why use the `transient` keyword in java?

I have an issue related to the transient keyword's use before the private modifier in java . variable declaration: transient private …

java serialization keyword transient modifier
Pros and cons of package private classes in Java?

I am learning Java recently, and I came across the notion of package-private classes, which is the default if we …

java class default modifier package-private
Why preg_replace throws me a "Unknown modifier" error?

I keep getting this error: Warning: preg_match() [function.preg-match]: Unknown modifier 't' in D:\xampp\htdocs\administrator\components\com_…

php preg-replace modifier
Why subclass in another package cannot access a protected method?

I have two classes in two different packages: package package1; public class Class1 { public void tryMePublic() { } protected void tryMeProtected() { } } package …

java package subclass protected modifier